Update results.py

This commit is contained in:
Flowiee 2019-10-17 16:53:56 +02:00 committed by GitHub
parent 38443490ee
commit fd075a8535
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ from telegram import InlineQueryResultArticle, InputTextMessageContent, \
InlineQueryResultCachedSticker as Sticker
import card as c
from utils import display_color, display_color_group, display_name
from utils import display_color, display_color_group, display_name, display_card_text
from internationalization import _, __
@ -205,7 +205,7 @@ def add_card(game, card, results, can_play):
)
if game.mode == "text":
results.append(
Sticker(str(card), sticker_file_id=c.STICKERS[str(card)], input_message_content=InputTextMessageContent("Card Played: {card}".format(card=repr(card)))
Sticker(str(card), sticker_file_id=c.STICKERS[str(card)], input_message_content=InputTextMessageContent("Card Played: {card}".format(card=display_card_text(card)))
))
else:
results.append(