From 7508af8757641bbdff5846ff5a908422f854d85f Mon Sep 17 00:00:00 2001 From: Cookie <58516648+Cookie-CHR@users.noreply.github.com> Date: Wed, 2 Mar 2022 11:57:00 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Update=20diobot.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added gender distinction --- royalpack/commands/diobot.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/royalpack/commands/diobot.py b/royalpack/commands/diobot.py index 5651ede3..2ef032d4 100644 --- a/royalpack/commands/diobot.py +++ b/royalpack/commands/diobot.py @@ -5,19 +5,19 @@ import random WHO = [ # A chi sarà diretto l'insulto - "Dio", - "Zio", - "Gesù", - "Cristo", - "Maria", - "Madonna", - "Eva", - "Adamo", - "Rettore", - "Steffo", - "Bot", - "Telegram", - "Discord", + ["Dio", "o"], + ["Zio", "o"], + ["Gesù", "o"], + ["Cristo", "o"], + ["Maria", "a"], + ["Madonna", "a"], + ["Eva", "a"], + ["Adamo", "o"], + ["Rettore", "o"], + ["Steffo", "o"], + ["Bot", "o"], + ["Telegram", "o"], + ["Discord", "o"], ] WHAT = [ # l'aggettivo per descrivere il soggetto @@ -126,11 +126,11 @@ async def diobot(*, _msg: engi.Message, **__): """ Il bot è molto arrabbiato e vuole creare insulti coloriti! """ - - message = "🤬 "+random.sample(WHO, 1)[0] + who = random.sample(WHO, 1)[0] + message = "🤬 " + who[0] for i in range(random.randint(1, 5)): message += " " - message += random.sample(WHAT, 1)[0] + message += random.sample(WHAT, 1)[0]. replace("ə", who[1]) message += "!" await _msg.reply(text=message)