Coder Social home page Coder Social logo

gonzyui / discord-template-v13 Goto Github PK

View Code? Open in Web Editor NEW
97.0 3.0 9.0 529 KB

An easy-to-use discord bot including database, slash commands and context menus !

Home Page: https://github.com/gonzyui/Discord-Template-V13/wiki

License: MIT License

JavaScript 99.89% Shell 0.11%
discord bot discord-bot discordjs discordjs13 template database slash-commands slash-commands-handler context-menus

discord-template-v13's Introduction

Discord Bot Template

An easy-to-use discord bot using Discord.JS V13. Wiki

Includes:

  • Slash commands
  • Database
  • User commands
  • Greetings

Languages:

  • French
  • English
  • Spanish
  • Turkish

and more in future

Requirements

  • Node JS 16.6 or higher
  • Scope "applications.commands" when adding the bot
  • MongoDB cluster (you can use Free clusters)

Install it

  • Use git clone gonzyui/Discord-Template-V13 or download the .zip file
  • Do npm i
  • Edit the .env.example to include your token, MongoDB login and the IDs of users that can use owner only commands separated by spaces, like this: OWNERS=280045641604792322 371384583876509697
  • Rename .env.example to .env
  • Now you can run it with node .

Issues

If you encounter any issue, please open an ISSUE.

Known issues:

  • No
  • known
  • issues

Contributors

Want to contribute and appear here ? Open a PR :)


Gonz#0001

๐Ÿ‘‘ Project owner

RedProcessor

Turkish contributor

elbkr

Contributor

tatsumara

Contributor

discord-template-v13's People

Contributors

dependabot[bot] avatar elbkr avatar gonzyui avatar islemci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

discord-template-v13's Issues

Slash commands does not work

There is no error in the console and when we run it, it just says that it connects to the database, nothing else. The bot open up but now working all commands (with interaction)

throw new DiscordAPIError_1.DiscordAPIError(data, data.code, res.status, method, url);

/Users/server/Discord-Template-V13/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.js:198
                throw new DiscordAPIError_1.DiscordAPIError(data, data.code, res.status, method, url);
                      ^

DiscordAPIError[50035]: Invalid Form Body
options[0].type[NUMBER_TYPE_COERCE]: Value "STRING" is not int.
type[NUMBER_TYPE_COERCE]: Value "CHAT_INPUT" is not int.
    at SequentialHandler.runRequest (/Users/server/Discord-Template-V13/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.js:198:23)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async SequentialHandler.queueRequest (/Users/server/Discord-Template-V13/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.js:99:20) {
  rawError: {
    code: 50035,
    errors: {
      options: { '0': { type: { _errors: [Array] } } },
      type: {
        _errors: [
          {
            code: 'NUMBER_TYPE_COERCE',
            message: 'Value "CHAT_INPUT" is not int.'
          }
        ]
      }
    },
    message: 'Invalid Form Body'
  },
  code: 50035,
  status: 400,
  method: 'post',
  url: 'https://discord.com/api/v9/applications/891535753446834207/commands'
}```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.