Discord Bot for Epitech La Réunion
Explore the docs »
Report Bug
·
Request Feature
This project is a Discord Bot for Epitech La Réunion to manage students easily.
To get a local copy up and running follow these simple steps.
- Clone the repo
git clone https://github.com/nicklamyeeman/RADAGAST.git
- Use npm to build and run
npm install
npm run dev
The project allows you to add events easily by adding a js file in the public/events/
directory.
Example :
module.exports = {
name: 'interactionCreate',
execute(interaction) {
if (interaction.isChatInputCommand()) {
const command = interaction.client.commands.get(interaction.commandName);
if (!command) return;
try {
command.chatInputExecute(interaction);
} catch (error) {
console.error(error);
interaction.reply({ content: `Error!`, ephemeral: true });
}
}
},
};
The project allows you to add commands easily by adding a js file in the public/commands/
directory.
Example :
const { SlashCommandBuilder } = require("discord.js");
module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!'),
async chatInputExecute(interaction) {
return interaction.reply({content: `Pong!`, ephemeral: false});
}
};
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Nick LAM YEE MAN - @nickauteen - nick.lam-yee-man@epitech.eu
Project Link: https://github.com/nicklamyeeman/RADAGAST