Skip to content

๐Ÿค– Create discord bot with this awesome nodejs boilerplate

License

Notifications You must be signed in to change notification settings

alishd-boilerplate/discord-node-bot-boilerplate

Repository files navigation

๐Ÿค– discord-node-bot-boilerplate

v1.231022.1 License: MIT Language: TypeScript ECMAScript: 2019

Create your discord bot with this awesome boilerplate. Use this template for your bot.

This is a github template, you can fork it or use it as a template to start a new project with this repository as hello-world. Use this template to start ahead without losing time configuring your own!

A huge thanks goes to my friend PTKdev for giving me inspiration from his beautiful templates! Go check him out!

๐ŸŽ Support: Donate

This project is free, open source and I try to provide excellent free support.

Donate Paypal

๐Ÿ“Ž Menu

๐Ÿ’ก Features

  • [โœ”๏ธ] Easy to use
  • [โœ”๏ธ] MIT License
  • [โœ”๏ธ] Make discord bot with node
  • [โœ”๏ธ] Friendly boilerplate + Github templates
  • [โœ”๏ธ] Optional MongoDB with Moongoose
  • [โœ”๏ธ] Optional rest api preconfigured
  • [โœ”๏ธ] Optional JWT Security
  • [โœ”๏ธ] Typescript + TSPaths preconfigured
  • [โœ”๏ธ] Userfriendly folders tree
  • [โœ”๏ธ] Prettify and ESLint preconfigured
  • [โœ”๏ธ] all-contributors-cli and all-shields-cli preconfigured
  • [โœ”๏ธ] JEST Test preconfigured
  • [โœ”๏ธ] Full async code
  • [โœ”๏ธ] Github and Vscode dotfiles preconfigured
  • [โœ”๏ธ] Translations: ๐Ÿ‡ฌ๐Ÿ‡ง ๐Ÿ‡ฎ๐Ÿ‡น

๐Ÿ”จ Developer Mode

๐Ÿ Run Project

  1. Clone this repository or download nightly, beta or stable.
  2. Go to @discord api and create a new bot (Obtain an API Key / CLIENT ID key / GUILD ID key)
  3. Run npm run init
  4. Run with correct values: npm run configure --botkey name_bot --clientid 1234:asdfghjkl --guildid 1234:asdsfssad --mongodb 1234:3242342 --jwtsecret somesecretstring (MongoDB and JWT are optional)
  5. Run npm run dev

By default both MONGODB and a REST API are enabled, to disable them just use these commands:

npm run enable-db dev
npm run enable-api dev
npm run disable-db dev
npm run disable-api dev

npm run enable-db prod
npm run enable-api prod
npm run disable-db prod
npm run disable-api prod

๐Ÿ’พ Setup Project

If you want to replace all strings (for example: package name, author, URLs, etc...) in the markdown file, source files and other files of this project you need to edit setup.json with the correct values and run npm run setup.

๐Ÿš€ Deploy

Deploy bot to your server and:

  1. Run npm run init
  2. Run with correct values: npm run configure --botkey name_bot --clientid 1234:asdfghjkl --guildid 1234:asdsfssad --mongodb 1234:3242342 --jwtsecret somesecretstring (MongoDB and JWT are optional)
  3. Generate release npm run release
  4. Start bot npm run start-pm2

๐Ÿ“š Documentation

Run npm run docs

๐Ÿ‘จโ€๐Ÿ’ป Contributing

I love contributions! I will happily accept your pull request! Translations, grammatical corrections, code correction and suggestions. Remember to insert your name in .all-contributorsrc and package.json files.

Many thanks goes to these wonderful people (emoji key):

Ali Shadman
Ali Shadman

๐Ÿ’ป ๐ŸŒ ๐Ÿ“– ๐Ÿ›
Patryk Rzucidล‚o
Patryk Rzucidล‚o

๐Ÿ’ป ๐ŸŒ ๐Ÿ“– ๐Ÿ›

๐Ÿฆ„ Other Projects

๐Ÿ’ซ License

  • Code and Contributions have MIT License
  • Images and logos have CC BY-NC 4.0 License
  • Documentations and Translations have CC BY 4.0 License
Copyleft (c) 2022 Ali Shadman <support@@alishd.dev>