GithubHelp home page GithubHelp logo

rohitkumar9710 / tle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iampjeetsingh/tle

0.0 0.0 0.0 1.68 MB

๐Ÿค– Discord Bot for Competitive Programming

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

License: MIT License

Dockerfile 0.11% Python 99.78% Shell 0.12%

tle's Introduction

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

tle's People

Contributors

algmyr avatar aneesh2312 avatar aryamanarora avatar aryanc403 avatar cfalas avatar cheran-senthil avatar chillee avatar denjellboone avatar dgcnz avatar goswami-rahul avatar grimzzz-404 avatar iampjeetsingh avatar kabeer27 avatar krofna avatar kuroni avatar lior5654 avatar meooow25 avatar metalball887 avatar mohammad-yasser avatar mukundan314 avatar narutse avatar pantsudestroyer avatar parsaalizadeh avatar potatohashing avatar prabowo02 avatar robert-30 avatar rohitkumar9710 avatar sahroush avatar shafinkhadem avatar shahraaz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.