Recreating the classic game of Hangman on Telegram!
You may find the deployed Telegram Bot here!
To create a clone of the bot, please run the following commands:
git clone https://github.com/xbowery/hangman_bot.git
cp .env.example .env
Next, obtain your Telegram Bot token from BotFather by sending the /newbot command to it.
Also, create a MongoDB cluster and obtain the MongoDB URL Connection String.
After obtaining the Telegram Bot token and the connection string, go to your .env
file and edit the token
and mongourl
fields respectively.
On your command line terminal, run the following command:
python3 bot.py
You should be able to interact with your bot thereafter.
I have provided the Dockerfile
and docker-compose.yml
files to allow you to easily run the Bot on Docker.
Please ensure you have Docker Desktop installed before proceeding with the steps below.
To run the Bot on Docker,
docker compose up -d --build