1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00

cast bugfix

This commit is contained in:
Steffo 2019-02-15 13:44:01 +01:00
parent ec27a59239
commit 35ba344f2c

View file

@ -184,7 +184,7 @@ def cmd_cast(bot: telegram.Bot, update: telegram.Update, session: db.Session):
# Find a target for the spell # Find a target for the spell
target = random.sample(session.query(db.Telegram).all(), 1)[0] target = random.sample(session.query(db.Telegram).all(), 1)[0]
# END # END
bot.send_message(update.message.chat.id, cast.cast(spell_name=spell, bot.send_message(update.message.chat.id, cast(spell_name=spell,
target_name=target.username if target.username is not None target_name=target.username if target.username is not None
else target.first_name, platform="telegram"), else target.first_name, platform="telegram"),
parse_mode="HTML") parse_mode="HTML")