npm install
to install dependencies- Set up environment variables:
- Create an
.env
file in the root directory of your project. - Add the following environment variables to
.env
file:
Token and Client ID can be found in the Discord Developer Portal
DISCORD_TOKEN = <your-discord-token>
CLIENT_ID = <your-client-id>
GUILD_ID = <your-server-id>
LOBBY_VOICE_CHANNEL_ID = <your-lobby-voice-channel-id>
VOICE_HUB = <your-voice-hub-id>
TEXT_CHANNEL_ID = <your-text-channel-id>
AIRTABLE_BASE_ID = <your-airtable-base-id>
AIRTABLE_API_KEY = <your-airtable-api-key>
AIRTABLE_TABLE_NAME_SESSIONS = <your-airtable-table-name-sessions>
AIRTABLE_TABLE_NAME_CHALLENGES = <your-airtable-table-name-challenges>
DEVELOPER_ROLE_ID = <your-developer-role-id>
DATA_SCIENTIST_ROLE_ID = <your-data-scientist-role-id>
UI_UX_DESIGNER_ROLE_ID = <your-ui-ux-designer-role-id>
SCRUM_MASTER_ROLE_ID = <your-scrum-master-role-id>
PRODUCT_OWNER_ROLE_ID = <your-product-owner-role-id>
- Create an
node index.js
to run the bot- When new commands are added, run
node deploy-commands.js.
This will update the server with the new changes. Only needed regarding commands. As of right now, this bot has no commands, so it's not neccessary to use.
npm run dev
to start development server
- airtable - ^0.12.2
- discord.js - ^14.15.3
- dotenv - ^16.4.5
- nodemon - ^3.1.4
- lowercase and hyphen inplace of space. For example
feature/discord-bot
- Only alphanumeric characters, dont use period, space, underscores etc. and dont use multiple hyphens after another, or trailing hyphens.
feature/
for all features.bugfix/
for all bugfixes.hotfix/
for all quick emergency fixes.docs/
for udates to documentation.refactor/
for refactoring.
- all commit messages should be short (50 characters or less), but descriptive. Example
feat: add admin dashboard
The description should also be what the commit does, not what you did. Notice the example above saidadd
notadded
- We use the following prefixes:
feat:
for featuresfix:
for bugfixes and hotfixesdocs:
for ducumentaionrefactor:
for refactoring