1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2025-02-17 10:53:57 +00:00

Non chiocciolare il mondo intero usando uno ZWS

This commit is contained in:
Steffo 2018-01-24 10:01:56 +01:00 committed by GitHub
parent d7c744c1b1
commit dbfbf9a0c5
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,7 +139,7 @@ def cmd_cast(bot: Bot, update: Update):
total = dmg_mod
for dice in range(0, dmg_dice):
total += random.randrange(1, dmg_max + 1)
bot.send_message(update.message.chat.id, f"❇️ Ho lanciato {spell} su {target.username if target.username is not None else target.first_name} per {dmg_dice}d{dmg_max}{'+' if dmg_mod > 0 else ''}{str(dmg_mod) if dmg_mod != 0 else ''}={total if total > 0 else 0} danni!")
bot.send_message(update.message.chat.id, f"❇️ Ho lanciato {spell} su @{target.username if target.username is not None else target.first_name} per {dmg_dice}d{dmg_max}{'+' if dmg_mod > 0 else ''}{str(dmg_mod) if dmg_mod != 0 else ''}={total if total > 0 else 0} danni!")
def process(arg_discord_connection):
@ -155,4 +155,4 @@ def process(arg_discord_connection):
u.idle()
if __name__ == "__main__":
process(None)
process(None)