Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.72 KB

README.md

File metadata and controls

31 lines (24 loc) · 1.72 KB

Squad 44 Bot

Discord

Contributing

  • The vehicleInfo.json is work in progress, data will be inacurate/missing, PRs are welcome to amend the data as well as Issues for improving data display/storage.

If you're willing to contribute to the project please read the contribution guide.

Setup

  1. Rename .env.example to .env and add in the following details:
TOKEN=INSERT_YOUR_TOKEN_HERE
  1. Rename config.template.json to config.json
  2. Setup the roles and channels in config.json, remember set each id as a string not a number.
  • You need to setup language and guild id manually if not it won't work.
  • It is also possible to setup the roles and channels through slash commands as long as you're the administrator on the server.
  1. Run pnpm install to install the dependancies
  2. Run pnpm run start to start the bot

Security Tip

The .env file is set to be ignored, the reason being that your discord Bots token is in it and should be kept private. Even if Discord has a system in place to change/suspend your token if found on the web don't rely on it, keep it private. So don't alter the .gitignore as piece of advice for people not knowing how git works.

Credits

Thanks to FissionFeline for the template used to get the bot started. You can find it here to use it yourself and start or continue learning discord.js