-
npm install
to install the dependencies -
You also need to set your bot token in a
.env
file, and pass it in through thetoken
variable -
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.
- discord.js - 14.14.1
- dotenv - 16.3.1
Your .env should contain the following:
DISCORD_TOKEN = <your-discord-token>
CLIENT_ID = <your-client-id>
GUILD_ID = <your-server-id>
Token and Client ID can be found in the Discord Developer Portal
- 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