Skip to content

Play dice game like guessing dice and rolling dice in telegram bot using python.

License

Notifications You must be signed in to change notification settings

codesperfect/GuessDiceBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GuessDiceBot

'img'

  • Telegram bot to play dice game

Environmental Variables

In .env file you can see variables given below

TELEGRAMBOT_TOKEN = "< Bot-Token >"

Replace < Bot-Token > with your openai api key. You can create new bot here BotFather.


MONGODB = "< Mongodb_url >"

Replace < Mongodb_url > with your mongodb URL. You can create MongoDB Url here MongoDB.

Run in Docker

Use the below code to run this bot in docker.

# clone repository
git clone https://github.com/codesperfect/GuessDiceBot.git

cd GuessDiceBot

Follow Environmental variables and execute the code

docker image build -t dicebot .

Replace dicebot with your own name for the container.

docker run dicebot

Run in Python

Use the below code to run this bot in linux.

# clone repository
git clone https://github.com/codesperfect/GuessDiceBot.git

cd GuessDiceBot

Follow Environmental variables and execute the code

python -m pip install -r requirements.txt

python bot.py

you can also try with python3.

About

Play dice game like guessing dice and rolling dice in telegram bot using python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages