Warning This is a template repository, allowing you to save time while creating a new Discord bot. it's just work but it's just a base, you will need to improve it to make an usable bot
- 🌠 Handle
slashCommands
andprefixedMessages
- 🤵 Configurable actions in
src/config.json
- 💬 Usage of discord.js v14.7,one of the latest version
- 👄 Multi-languages support, just add your
.json
insrc/languages/
folder - ⚙️ Customization of the Discord server (prefix, DT server, etc...)
Commands | Options | Description |
---|---|---|
/help | Displays help menu | |
/info | Display basic bot's information, such as owner & support server | |
/lang | language |
Change the default language of DiscordBot on the Discord server |
/prefix | prefix |
Change the default prefix of the bot |
git clone https://github.com/Paul-Marie/DiscordBot;
cd DiscordBot/
Now open the ./src/config.json
file and fill in the empty fields, such as the discordToken
part where you must put your Discord bot token, then add the images associated with your future bot in the fields blank field.
Make sure you have a version of Node.JS greater than 16.9.0, Then launch your bot with yarn or npm (you've got the choice)
yarn; # Used to install the necessary packages
yarn start; # Launch the bot on your machine
I personally recommend you to use PM2 or screen to keep your bot active all the time long.
Note The file
src/discord.ts
export all Discord's logic, allowing you to export discord.js'sClient
, usefull to import it insrc/scripts/*.ts
without redefining it.
You can use your src/scripts/*.ts
by invoking their name (without extension) as the 3rd argument with yarn
such as:
yarn start makeDB; # Optionally create your local database
Pop the ⭐ to contribute to the project 😎.