A Discord bot to allow people to easily setup and play AoE2DE team games together on a server. This bot is still under development!
- Node version:
^17.3.0
- NPM version
^8.3.0
(If using another package manager, use the equivalents for the npm commands shown below)
In order to run this bot, you must first:
- Create a discord account,
- Create a bot application from the discord developer portal
- Invite the bot with the correct OAuth2 permissions to your server.
- This guide covers the above steps in detail.
After going through the above setup, clone the source code to a local directory, then follow these steps:
cd
into the source directory- Run
npm i
- Create a
.env
file in the root directory of the source (not inside the./src
folder) and add:- A line containing your bot token as
TOKEN=<BOT TOKEN GOES HERE>
(Secret, should never be made public) - Add your test server's guild ID as
TEST=<GUILD ID GOES HERE>
- A line containing your bot token as
npm run dev
can then be used for developing the bot with hot reloading.npm run start
can be used to run the bot without hot reloading (should not be used in production)npm run deploy
can be used to run the bot in a production environment