THE TELEGRAM BOT FOR COMPETITIVE PROGRAMMERS
THE TELEGRAM BOT FOR COMPETITIVE PROGRAMMERS
superCodingBot is a telegram bot built in python 3 using python-telegram-bot wrapper.
Create your bot and Get your telegram bot token from BotFather
Get your hackerrank api key from Hackerrank
Register to Clist and get your username and api key
Get your telegram chat id
Edit the config.ini file with your telegram bot token, hackerrank api key, clist user name, clist api key. Also put your chat id in admin chat id. You can put multiple admin chat ids seperated by comma. Admins will be notified by the bot whenever data or questions are updated and will have access to admin commands. You can also put your persistent storage point if you will be using OPENSHIFT ONLINE to host the bot (If name of your volume is df then put /df/ in the field) otherwise just leave the field blank
when you want to rebuild your project
first of all go to deployments and select the latest deployment
downscale the no of pods to 0 and wait for it to happen
IMPORTANT go to deployment configuration and detach the storage. A deployment will start, let it finish
Go to builds, select name and click on start build
After finishing build a deployment will start, let it finish
Go back to deployment configuration and add storage with same mount point as previous and wait for a new deployment
After deployment finishes, go to deployments. Select latest and scale the pod to 1.
YOU CAN REMOVE YOUR GITHUB REPOSITORY BUT MAKE SURE TO RECREATE IT WHEN REBUILDING YOUR PROJECT