TLE is a Discord bot centered around Competitive Programming.
- Follow this guide to create a new discord bot account and invite that to your server.
- To keep things simple and easy give it Admin Perms and Move the Role to top.
-
Navigate to Firebase Web Console
-
Create a Project and Naviage to project settings. URL looks like https://console.firebase.google.com/u/0/project/test-12874/settings/serviceaccounts/adminsdk.
-
Click on "Create Service Account" and then "Generate new private key". Save the JSON File safely.
-
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
- Fork Repo
- Change heroku stack to container link
- Connect Github with Heroku and Deploy app
- Head Over to Settings and Fill in the following Variables
- Paste your discord bot token in "BOT_TOKEN"
- Paste your clist api param query (username=iwant&api_key=e4c97d624a7b963322ef90e651a5d21f000ac509) in "CLIST_API_TOKEN"
- Encode the contents of Firebase JSON file in base64 and Paste encoded string in "FIREBASE_ADMIN_JSON"
- Paste ID of a Discord Channel where you will want the bot to log in "LOGGING_COG_CHANNEL_ID"
- Paste in Storage Bucket URL in "STORAGE_BUCKET"
- Set "ALLOW_DUEL_SELF_REGISTER" to true/false
- Set "TLE_MODERATOR" to Moderator or any Role Name
- Navigate to Resources and turn on the Dyno