Utility bot created for Clash of Clans to support stat tracking with in the discord server.
Directions on creating an app and getting credentials may be found here.
Invite your bot to your server, make sure you select the bot and applications.commands options while creating the invite.
Get your Clash of Clans API Token from here.
-
Clone this repository
-
Make a copy of
.env.copyand rename it to.env. Fill in your Discord Token, your Mongo_URI and your Clash Token. Make sure you include Bearer before your clash token like"Bearer eyJ0eXAiOiJKV..." -
Make a copy of the
config.json.copyfile and rename it toconfig.json. Then go to theconfig.jsonfile and change all the ids to ids in your server.
Install all the dependencies using
npm installRegister slash commands to a single guild by running
node deploy-commands.jsYou only need to run node deploy-commands.js once. You should only run it again if you add or edit existing commands
Finally start the application using
node indexand hopefully everything works right :)