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

⚙️ Update diobot.py

Added gender distinction
This commit is contained in:
Cookie 2022-03-02 11:57:00 +01:00 committed by Stefano Pigozzi
parent 707a4cba38
commit 7508af8757

View file

@ -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)