Discord Bot for a single server to display a dynamic leaderboard of each member
Commands:
!setup to setup bot
!add to add players to leaderboard
!remove to remove players from leaderboard
!stat or stats to update the leaderboard
- Edit config.json to include the 3 different api keys you need to make this bot work.
-For Discord, you start by going here and creating a new application, give it a name, a profile picture, etc. Then go to the bot tab and copy the "token", that is your discordKey.
-For Bungie, you start by going here and create a new app. Give it a name, and choose not applicable for oauth client type. Leave everything else as is and then click create new app. The API Key is your bungieKey.
-For Heroku you start by going here and click create authorization and give it whatever description you want, then click create. The autorization token is your herokuKey. - Now you need to go to here and create a new app in heroku. and remember it's name.
- Install Heroku CLI
- Install Git
- Open up a new command prompt window inside of the folder where you downloaded the files to.
- Run 'heroku login' and let it open in a window to your browser to login into the command line interface.
- Run 'git init'
- Run 'heroku git:remote NameOfAppYouCreatedOnHeroku'
- Run 'heroku buildpacks:add heroku/nodejs'
- Run 'git add .'
- Run 'git commit -am "Deploying to Heroku"'
- Run 'git push heroku master'
- Use this link to add your bot to your server:
https://discord.com/api/oauth2/authorize?client_id=insertClientIdFromDiscordHere&permissions=240656&scope=bot
And there you go, it should be running. If it isn't, you may need to go into the resources tab of your app on Heroku and make sure that Worker is enabled and that no other Dynos are enabled.