Skip to content

xbowery/hangman_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangman Bot

Recreating the classic game of Hangman on Telegram!

View Deployed Bot

You may find the deployed Telegram Bot here!

Usage

Bot Setup

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.

Running the Bot locally

On your command line terminal, run the following command:

python3 bot.py

You should be able to interact with your bot thereafter.

Running the Bot on Docker

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

About

Recreating the classic game of Hangman on Telegram!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages