GithubHelp home page GithubHelp logo

allenli873 / tle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fishy15/tle

0.0 1.0 0.0 1.17 MB

๐Ÿค– Discord Bot for Competitive Programming

Home Page: https://discordapp.com/invite/2CJ6qvY

License: MIT License

Python 99.85% Dockerfile 0.15%

tle's Introduction

TLE (+ Heroku)

This repository helps to run tle directly in the heroku. For more information about TLE, check the main repository.


Steps for hosting a bot for your own server using Heroku.

  1. Download the heroku CLI from here
  2. Now after installing the CLI, open up the CLI if you are on windows or open up a terminal if you are on linux.
  3. Now enter the command heroku login and it will open up a link in the browser for login. Login using your credentials.
  4. Now clone this repository from the terminal using the command git clone https://github.com/fishy15/TLE.git.
  5. After cloning move into the TLE directory using cd TLE.
  6. Now enter heroku create command in the terminal and hit enter. It will create a new app for you. Remember the name.
  7. Now you need to add two buildpacks to deploy. The APT buildpack to install essential APT files and Python buildpack to install essential packages.
  8. To add APT buildpack type the following command heroku buildpacks:add heroku-community/apt.
  9. To add Python buldpack type the following command heroku buildpacks:add heroku/python.

    Note: the order of adding the buildpacks is important.

  10. Now go to the personal dashboard page of heroku on your browser.
  11. Next click on the app you created in step 6.
  12. Now, go to resources and click on Find more add-ons and find Heroku Postgres.
  13. Click to install the database on the Hobby Dev plan and set the app to the one that hosts the bot.
  14. Go to settings tab and you will see a section called Config Vars. Click on the reveal config vars button.
  15. Now you need to create a config var called BOT_TOKEN and paste your bot token created using discord and hit add.
  16. Make sure that the name of the config var that contains the database url is named DATABASE_URL.
  17. Now you are almost done. Type the following command git push heroku master and press enter.
  18. It will take few minutes to build and deploy
  19. After successful build open the heroku app in your browser. The same step as 10.
  20. Go to Resources tab and turn on the worker. You are not charged for doing this its completely free.
  21. That's it Enjoy!

tle's People

Contributors

algmyr avatar aneesh2312 avatar aryamanarora avatar aryanc403 avatar cfalas avatar cheran-senthil avatar dgcnz avatar fishy15 avatar goswami-rahul avatar gpk2000 avatar kabeer27 avatar krofna avatar kuroni avatar lior5654 avatar m7mdisk avatar maksim1744 avatar meooow25 avatar metalball887 avatar mohammad-yasser avatar mukundan314 avatar narutse avatar pantsudestroyer avatar parsaalizadeh avatar potatohashing avatar prabowo02 avatar robert-30 avatar sahroush avatar shafinkhadem avatar shahraaz avatar wasim7raja10 avatar

Watchers

 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.