8000 GitHub - fegkay15/sweet-stats: Discord Bot for a single server to display a dynamic leaderboard of each member
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fegkay15/sweet-stats

Repository files navigation

Sweet Stats

Discord Bot for a single server to display a dynamic leaderboard of each member

How to use

Commands:
!setup to setup bot
!add to add players to leaderboard
!remove to remove players from leaderboard !stat or stats to update the leaderboard

How to deploy to Heroku

  1. 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 autorizat 65AD ion token is your herokuKey.
  2. Now you need to go to here and create a new app in heroku. and remember it's name.
  3. Install Heroku CLI
  4. Install Git
  5. Open up a new command prompt window inside of the folder where you downloaded the files to.
  6. Run 'heroku login' and let it open in a window to your browser to login into the command line interface.
  7. Run 'git init'
  8. Run 'heroku git:remote NameOfAppYouCreatedOnHeroku'
  9. Run 'heroku buildpacks:add heroku/nodejs'
  10. Run 'git add .'
  11. Run 'git commit -am "Deploying to Heroku"'
  12. Run 'git push heroku master'
  13. 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.

Image of Leaderboard Gif of Leaderboard

About

Discord Bot for a single server to display a dynamic leaderboard of each member

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0