Skip to content

Paul-Marie/DiscordBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord.js typescript GitHub last commit

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

📝 Fonctionnalities

  • 🌠 Handle slashCommands and prefixedMessages
  • 🤵 Configurable actions in src/config.json
  • 💬 Usage of discord.js v14.7,one of the latest version
  • 👄 Multi-languages support, just add your .json in src/languages/ folder
  • ⚙️ Customization of the Discord server (prefix, DT server, etc...)

📚 Commands

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

📜 Instalation

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's Client, usefull to import it in src/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 😎.

Releases

No releases published

Packages

No packages published