Skip to content

Banxnx/DiscordCryptoTickers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hosting your discord.py bot on Heroku

What are the prerequisites for this guide?

You must have an account for Discord [Link], GitHub [Link] , and Heroku [Link].

How do I create a bot and get a bot token?

  • Create an application in the developer portal by clicking here
  • Open up your new application and click 'Add Bot' under the Bot settings to create your bot.
  • After creating the bot, click the 'Copy' button under the title Token. Take note of your token as you will need it later.

How to fork the repository and set it up to work with Heroku?

  • Fork a copy of this repository by clicking the 'Fork' on the upper right-hand.
  • Create an application for Heroku by clicking here.
  • Under 'Deploy', do the following:
    • Deployment Method => Connect your GitHub
    • App connected to GitHub => Search for the forked repository
    • Automatic Deploy => Enable Automatic Deploy (to redeploy after every commit)
  • Under 'Settings', click on 'Reveal Config Vars' and enter the following:
    • KEY => DISCORD_TOKEN
    • VALUE => (Enter the bot token that you copied from the developer portal)
    • Click the 'Add' button after entering all of this information.
    • KEY => WAIT_DURATION
    • VALUE => enter duration to change currency on "watching "
    • Click the 'Add' button after entering all of this information.
  • Under 'Resources', do the following:
    • Click on the 'Pencil' icon.
    • Switch the worker from off to on.
    • Click 'Confirm' to finalize the decision.
    • NOTE: You are allocated 550 free Dyno hours, which will not last the entire month. However, if you provide a credit card to verify your identity, you are given an additional 450 hours, which will allow your bot to run indefinitely.

How to add Currency pair?

  • add environment variable check previous step for adding environment variables (Reveal Config Vars) :
    • MAIN_CURRENCY_NAME : name of currency that you want to add example binancecoin, check your currency name on coingecko website
    • MAIN_CURRENCY_SYMBOL: symbol of your currency choice, ex: BNB
    • CURRENCY_TO_SHOW: currency to show in your discord ex: USD this will show your discord name as USD/BNB
    • VS_CURRENCIES: vs currency that you want to watch, ex: usd,idr

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%