SMiles02 / TLE

🤖 Discord Bot for Competitive Programming

Home Page:https://github.com/cheran-senthil/TLE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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. 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=e4c97d624a7b963322ef90e651a5d21f000ac509

Creating A Heroku App

  1. Fork Repo
  2. Change heroku stack to container link
  3. Connect Github with Heroku and Deploy app
  4. Head Over to Settings and Fill in the following Variables
  5. Paste your discord bot token in "BOT_TOKEN"
  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 in "LOGGING_COG_CHANNEL_ID"
  9. Paste in Storage Bucket URL 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

About

🤖 Discord Bot for Competitive Programming

https://github.com/cheran-senthil/TLE

License:MIT License


Languages

Language:Python 99.8%Language:Shell 0.1%Language:Dockerfile 0.1%