mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2025-02-16 13:24:06 +00:00
bugfix ep 3
This commit is contained in:
parent
71986fad46
commit
2a072727d8
1 changed files with 3 additions and 3 deletions
6
main.py
6
main.py
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.5
|
||||
#!/usr/bin/env python3.5
|
||||
# -*- coding: utf-8 -*-
|
||||
from telegram.ext import Updater, CommandHandler
|
||||
import filemanager
|
||||
|
@ -420,7 +420,7 @@ def status(bot, update):
|
|||
# Aggiungi l'elenco dei giocatori
|
||||
for player in game.players:
|
||||
if not player.alive:
|
||||
text += s.status_dead_player.format(player.tusername)
|
||||
text += s.status_dead_player.format(name=player.tusername)
|
||||
elif player.votingfor is not None:
|
||||
text += s.status_voting_player.format(icon="\U0001F610", name=player.tusername, votes=str(player.votes), voting=player.votingfor.tusername)
|
||||
else:
|
||||
|
@ -532,7 +532,7 @@ def kill(bot, update):
|
|||
target = game.findplayerbyusername(update.message.text.split(' ')[1])
|
||||
if target is not None:
|
||||
target.kill()
|
||||
bot.sendMessage(update.message.chat['id'], s.admin_killed.format(name=target.name, icon=target.role.icon, role=target.role.name))
|
||||
bot.sendMessage(update.message.chat['id'], s.admin_killed.format(name=target.tusername, icon=target.role.icon, role=target.role.name))
|
||||
else:
|
||||
bot.sendMessage(update.message.chat['id'], s.error_username)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue