Skip to content

A simple discord bot template. Instead of typing up boilerplate code every time you want to make a new project, just clone this repo intead.

License

Notifications You must be signed in to change notification settings

nosam1998/discord_bot_starting_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic discord bot

Structure:

  • /
    • src/
      • commands/
        • tools/
      • events/
        • client/
        • mongo/
      • functions
        • handlers/
      • schemas/
        • Mongo DB schema's
    • index.js (Main entry point)
    • package.json
    • .env

Getting started:

  1. run npm i in the terminal
  2. Update the .env file to use your credentials
    1. You can use either devToken or prodToken. If both are filled then it will use the prodToken.
    2. You can choose between clientId and guildId OR applicationId
    3. You can use mongo_connStr (which is a MongoDB connection string) OR you can use the individual parameters (mongo_host, mongo_dbname, mongo_database, mongo_username, mongo_password)
  3. Run the bot by doing: npm run startmon to utilize nodemon OR npm run start

About

A simple discord bot template. Instead of typing up boilerplate code every time you want to make a new project, just clone this repo intead.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published