- Node.js (v16 or higher)
- Discord Bot Token
- Clone the repository
- Install dependencies:
npm install
- Create a
.envfile in the root directory with:DISCORD_TOKEN=your_bot_token_here CLIENT_ID=bot_application_id GUILD_ID=discord_server_id - Run
node deploy_commands.jsto load slash commands into your discord server - Enable required Discord Intents:
- Go to Discord Developer Portal
- Select your application
- Go to Bot section
- Enable "SERVER MEMBERS INTENT"
npm start- Format code:
npm run format - Lint code:
npm run lint - Fix linting issues:
npm run lint:fix
/ping- Bot responds with "Pong!"
/approvechannel- Set the channel for submissions to be forwarded to for approval/signupchannel- Set the channel to announce registered members/acceptedchannel- Set the channel to announced approved submissions
/create-event/edit-event- Create/Edit an event/create-team/edit-team- Create/Edit a team/activate-event- Activate the event for team commands/register-team- Register a team for an event
/event- Information for an event and teams/team- Information for a team and members/register- Register yourself to the event/status- Status for yourself
/submit- Submit an image to the event
- Setting up event and team
- /create-event name: CAKE description: yumyum
- /activate-event event: CAKE
- /create-team leader: @ruto name: BESTTEAM
- Note: They must already be in discord
- /register-team team: CAKE
- Other users must now register
- /register rsn: noah
- Mod can now add user to a team
- /addmember team: CAKE user: @Noah