Small Discord bot with commands that allows users of the Discord server to access their Faceit (CS:GO) stats, profiles, and more. Utilizes the discordpy library. I use Heroku's free plan to deploy.
What you'll need:
- a) A Heroku account (free is fine, but won't cover uptime for the bot for an entire month), or b) a local machine to run the app.
- A Faceit developer account with your own Faceit app (to get the API key).
- A fork of this repository.
- Create an app on Heroku.
- Under App -> Deploy, connect to your forked repository.
- Under App -> Settings, press Reveal Config Vars and add two new variables:
DISCORD_TOKEN = {your-discord-token}
API_KEY = {your-faceit-api-key}
- Under App -> Deploy, press Deploy Branch and enable automatic deploys.
After this you should be good to go.
- Clone the forked repository to the machine you want to use.
- Create a
.env
-file and add two new variables:DISCORD_TOKEN = {your-discord-token}
API_KEY = {your-faceit-api-key}
- Run
main.py
from your machine.
The bot currently supports the following commands:
Faceit:
-profile
Displays Faceit profile of a player.-stats
Displays stats of last 20 matches.
Miscellaneous:
-backflip
Displays a backflip GIF.-poll
Take a vote on important matters.-roll
Pick a random number between 1 and your number (defaults to 6).
Default:
-help
Shows embed with list of available commands.
If you have any suggestions for commands feel free to open an issue.