A telegram bot for accessing gleitz/howdoi. Get instant coding answers. Telegram bot that answers your coding questions.
Get to the solution quickly without any distraction.
The bot is currently deployed. Check out @how_doiBOt on Telegram.
Take a look!
-
Make sure you have
git,pythonandpip.# the following commands should not produce error git --version python --version # 3.9 is recommended pip --version
Note: In some systems
pythonversion 3 is availaible aspython3 -
First of all, clone the repository.
git clone https://github.com/aahnik/howdoi-telegram.git
-
Now, move into the
howdoi-telegramdirectory.cd howdoi-telegram -
Create a python virtual enviroment.
python -m venv .venv # create source .venv/bin/activate # activate (unix) # the command to activate virtual environment is different for Windows, google search
-
Install the requirements.
pip install -r requirements.txt
-
Set
BOT_TOKENenvironment variable. Write the following into a file named.env.BOT_TOKEN=1234fsjksjfls23r4 # use your own real tokenYou can create a new bot and get token from @BotFather.
-
Run the
do.py, and you are good to go.python do.py
You can click this button to deploy to Heroku.
Issues and PRs welcome!