A Discord bot specifically designed for the GNOME Nepal community server, featuring role-based commands and community engagement tools.
This Discord bot is built using:
- Node.js (v16.6.0 or later)
- discord.js library
- Role-based command system
-
Clone and install dependencies:
git clone https://github.com/GNOME-Nepal/discord-bot.git cd discord-bot npm install
-
Create a
config.json
file with your Discord credentials. You can simply rename the provided.config.json
template file:cp .config.json config.json
Then edit the
config.json
file with your actual credentials. -
Validate configuration and start the bot:
npm run ttest # Validate token configuration npm run dev # Start in development mode
The bot supports two types of commands:
-
Slash Commands: Available to all users (use
/help
to see the list)- Examples:
/report
,/about
,/contributors
,/meme
,/social
- Examples:
-
Role-based Commands: Access depends on user roles
- Members:
sudo help
- Contributors:
$sudo help
- Maintainers:
$packman help
- Members:
index.js
: Main bot script.config.json
: Template configuration fileconfig.json
: Your actual configuration file (gitignored)commands.js
: Command definitionsSrc/
: Command implementationsSrc/Slash-Commands/
: Slash commandsSrc/Member/
,Src/Contributor/
,Src/Maintainer/
: Role-based commands
Run tests with:
node tests/commandtest.js
We welcome contributions to enhance this project! Whether you're fixing bugs, adding new features, or improving documentation, your help is appreciated.
For detailed guidelines, check out our contributing Guidelines.
This project is licensed under the MIT LICENSE.