Update utils.py
This commit is contained in:
parent
c6e1dcacb3
commit
22c454e149
1 changed files with 1 additions and 20 deletions
19
utils.py
19
utils.py
|
@ -25,7 +25,6 @@ from telegram.ext.dispatcher import run_async
|
||||||
from internationalization import _, __
|
from internationalization import _, __
|
||||||
from mwt import MWT
|
from mwt import MWT
|
||||||
from shared_vars import gm
|
from shared_vars import gm
|
||||||
import card as c
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -78,24 +77,6 @@ def display_color_group(color, game):
|
||||||
emoji='💛')
|
emoji='💛')
|
||||||
|
|
||||||
|
|
||||||
def display_card_text(card):
|
|
||||||
if card.special == c.DRAW_FOUR:
|
|
||||||
return __("⬛️+4")
|
|
||||||
if card.special == c.CHOOSE:
|
|
||||||
return __("⬛️Color Chooser")
|
|
||||||
if card.value == c.DRAW_TWO:
|
|
||||||
if card.color == 'r':
|
|
||||||
return __("❤️+2")
|
|
||||||
if card.color == 'b':
|
|
||||||
return __("💙+2")
|
|
||||||
if card.color == 'g':
|
|
||||||
return __("💚+2")
|
|
||||||
if card.color == 'y':
|
|
||||||
return __("💛+2")
|
|
||||||
else:
|
|
||||||
return repr(card)
|
|
||||||
|
|
||||||
|
|
||||||
def error(bot, update, error):
|
def error(bot, update, error):
|
||||||
"""Simple error handler"""
|
"""Simple error handler"""
|
||||||
logger.exception(error)
|
logger.exception(error)
|
||||||
|
|
Loading…
Reference in a new issue