Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.
/ howdoi-telegram Public archive

Get instant coding answers from Stack Overflow in your Telegram chat. Save time and have fun.

License

Notifications You must be signed in to change notification settings

aahnik/howdoi-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

howdoi-telegram

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.

Take a look!

demo-gif

How to run

You can run on any OS (windows/mac/linux). For better reliability, you may deploy to a VPS like Digital Ocean Droplet. You can even run on Android, using the Termux app.

Open your terminal and follow the instructions to run the bot.

  • Make sure you have git, python and pip.

    # the following commands should not produce error
    git --version
    python --version # 3.9 is recommended
    pip --version

    Note: In some systems python version 3 is availaible as python3

  • First of all, clone the repository.

    git clone https://github.com/aahnik/howdoi-telegram.git
  • Now, move into the howdoi-telegram directory.

    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_TOKEN environment variable. Write the following into a file named .env.

    BOT_TOKEN=1234fsjksjfls23r4
    # use your own real token

    You can create a new bot and get token from @BotFather.

  • Run the do.py, and you are good to go.

    python do.py

Deploy to Heroku

You can click this button to deploy to Heroku.

Deploy

For more details read the guide about Heroku deployment.

Contributing

Issues and PRs welcome!