A discord bot to manage our things like:
- Remember events:
- Meetings
- Birthdays
- Deadlines
- Welcome new people
- React to some text messages
- Provide regular feedback on the status of our projects and statistics
- Play music
The bot is built using the discord.js library. It uses the slash commands feature to interact with users.
The diagram is the following:
-
Node.js (>=
v16.11.0
). -
Download .env file and place it in the root directory of the project.
npm install
npm start
npm run format
npm run check-format
npm run test
npm run deploy-commands-guild
npm run deploy-commands-global
- Create a new file in the
commands
directory. - You must export a function with the following signature:
module.exports = {
data: new SlashCommandBuilder()
.setName("new-command")
.setDescription("New command description"),,
execute: async (interaction) => {
// Your code here
}
};
- Add a mock test in the
tests
directory.
- Create a new file in the
events
directory. - You must export a function with the following signature:
module.exports = {
name: 'event-name',
execute: async (interaction) => {
// Your code here
}
};