Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 2.28 KB

README.md

File metadata and controls

31 lines (27 loc) · 2.28 KB

TLE

TLE is a Discord bot centered around Competitive Programming.

Hosting Guide

Creating A Discord Bot

  1. Follow this guide to create a new discord bot account and invite that to your server.
  2. To keep things simple and easy give it Admin Perms and Move the Role to top.

Creating A Firebase Storage Bucket for Database Backups

  1. Navigate to Firebase Web Console
  2. Create a Project and Naviage to project settings > Service accounts tab. URL looks like https://console.firebase.google.com/u/0/project/test-12874/settings/serviceaccounts/adminsdk.
  3. Click on "Create Service Account" and then "Generate new private key". Save the JSON File safely.
  4. Navigate to Build -> Storage -> Get Started. And create a Bucket. Save the Bucket URL (ProjectName.appspot.com).

Creating CLIST API Key

  • Navigate to Clist API Docs and click on "show my api-key". And Save the Param Query. Ex. username=iwant&api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Creating A Heroku App

  1. Fork Repo
  2. Change heroku stack to container link by https://heroku.com/deploy?template=<Link to your forked repo>.
  3. Connect Github with Heroku and Deploy app
  4. Head Over to Settings and Fill in the following Variables [Add them if not present].
  5. Paste your discord bot token in "BOT_TOKEN". Bot token can be found in bot settings on the developer page.
  6. Paste your clist api param query (username=iwant&api_key=e4c97d624a7b963322ef90e651a5d21f000ac509) in "CLIST_API_TOKEN"
  7. Encode the contents of Firebase JSON file in base64 and Paste encoded string in "FIREBASE_ADMIN_JSON".
  8. Paste ID of a Discord Channel where you will want the bot to log stuff in "LOGGING_COG_CHANNEL_ID".
  9. Paste in Storage Bucket URL <ProjectName.appspot.com> in "STORAGE_BUCKET".
  10. Set "ALLOW_DUEL_SELF_REGISTER" to true/false.
  11. Set "TLE_MODERATOR" to Moderator or any Role Name.
  12. Navigate to Resources and turn on the Dyno.

Now, Your instance of TLE is up and running! :D