From 3d555f8dbbb51f062726d0df8d9a9cb513c5eced Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 10 Aug 2016 17:12:32 +0200 Subject: [PATCH] Update fakerole to include terrorist role --- main.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index d204d98..539d177 100644 --- a/main.py +++ b/main.py @@ -744,13 +744,16 @@ def delete(bot, update): def fakerole(bot, update): """Manda un finto messaggio di ruolo.""" if update.message.chat['type'] == 'private': - bot.sendMessage(update.message.chat['id'], s.role_assigned.format(icon=s.royal_icon, name=s.royal_name), + bot.sendMessage(update.message.chat['id'], s.role_assigned.format(icon=Royal.icon, name=Royal.name), parse_mode=ParseMode.MARKDOWN) - bot.sendMessage(update.message.chat['id'], s.role_assigned.format(icon=s.mifia_icon, name=s.mifia_name), + bot.sendMessage(update.message.chat['id'], s.role_assigned.format(icon=Mifioso.icon, name=Mifioso.name), parse_mode=ParseMode.MARKDOWN) - bot.sendMessage(update.message.chat['id'], s.role_assigned.format(icon=s.detective_icon, name=s.detective_name), + bot.sendMessage(update.message.chat['id'], s.role_assigned.format(icon=Investigatore.icon, + name=Investigatore.name), parse_mode=ParseMode.MARKDOWN) - bot.sendMessage(update.message.chat['id'], s.role_assigned.format(icon=s.angel_icon, name=s.angel_name), + bot.sendMessage(update.message.chat['id'], s.role_assigned.format(icon=Angelo.icon, name=Angelo.name), + parse_mode=ParseMode.MARKDOWN) + bot.sendMessage(update.message.chat['id'], s.role_assigned.format(icon=Terrorista.icon, name=Terrorista.name), parse_mode=ParseMode.MARKDOWN) else: bot.sendMessage(update.message.chat['id'], s.error_private_required, parse_mode=ParseMode.MARKDOWN)