Affectionately known as "Region Reigner 5000"
A discord.js bot to run the latest edition of Reign of the Regions, a Discord-based wargame.
Original concept ("Virginia Memorial Battle Simulator"): Jean
Design: Jean, SyFi, AOE, paradox
Bot: paradox
Creator of RotR and the reason we needed a bot in the first place: Mars
- Run
npm install
in this directory. - Create an app at https://discord.com/developers/applications. Optionally, give your app and bot (left panel) a cool name, profile picture, description, etc.
- In the Bot page, click "reset token" to get your bot token. Do not share this with anybody.
- In the OAuth2 page, copy your client ID.
- Also in the OAuth2 page, select
applications.commands
andbot
under OAuth2 URL Generator and use the generated URL to add your bot to a server. - Create a file called
config.json
in this directory and add the following info:{ "token": "[your bot token]", "clientId": "[your client ID]" }
- Run the file
global-deploy-commands.js
in this directory. - Run the file
bot.js
in this directory to start the bot. It may take up to an hour for your commands to be deployed (that's on Discord's side, not ours).
Testing edits to the bot or just impatient? You can also deploy commands per-server.
- Enable Discord developer mode if you haven't already, then right click your desired server's name or icon and click "Copy Server ID".
- Put this ID in
config.json
as follows:{ "token": "[your bot token]", "clientId": "[your client ID]", "guildId": "[your server ID]" }
- If you previously ran
global-deploy-commands.js
, rundelete-all-commands.js
to remove duplicate versions of the bot's commands. - Run
guild-deploy-commands.js
and start the bot.