Skip to content

zvedenyuk/gameofcardsbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Of Cards bot for Telegram

Setup

Create a new Telegram bot via @BotFather.

Install all needed packages from requirements.txt:

python -m pip install --upgrade pip
pip install -r requirements.txt

Create file botConfig.py where you should specify your bot token, proxy, etc.

# -*- coding: utf-8 -*-
botToken=""
telebotProxy={'https':'socks5h://'}

Create file cards.py where you store database of texts for your cads:

cards = {
	"default set":{
		"white": [
			"White card 1",
			"White card 2",
			...
			],
		"black": [
			"Black card 1",
			"Black card 2",
			...
			],
		"black2": [
			"Black card with 2 spaces",
			...
			]
		}
}

Run

Start the bot by running bot.py

python bot.py

About

Game Of Cards bot for Telegram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages