GithubHelp home page GithubHelp logo

fegkay15 / sweet-stats Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 370 KB

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

JavaScript 99.94% Procfile 0.06%
leaderboard heroku bungie discord-bot stats sweet-stats membership profile

sweet-stats's Introduction

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 autorization 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

sweet-stats's People

Contributors

dependabot[bot] avatar fegkay15 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

shawnb01

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.