2020-10-13 21:02:40 +02:00
|
|
|
from data import constants
|
2020-11-03 16:06:08 +01:00
|
|
|
import random
|
2020-10-13 21:02:40 +02:00
|
|
|
|
|
|
|
|
2020-11-03 16:06:08 +01:00
|
|
|
def control(bot, message):
|
2020-10-13 21:02:40 +02:00
|
|
|
if str(message.author.id) == constants.didierId:
|
|
|
|
return ""
|
2020-11-03 16:06:08 +01:00
|
|
|
elif didier(bot, message.content):
|
2020-10-13 21:02:40 +02:00
|
|
|
return "Hmm?"
|
|
|
|
elif any(term in message.content for term in ["gib dink", "gib donk"]):
|
|
|
|
return "No."
|
2020-11-03 16:06:08 +01:00
|
|
|
elif didier(bot, message.content.split(" ")[0]) and any(term in message.content.lower() for term in ["are you sure", "are u sure"]):
|
2020-10-13 21:02:40 +02:00
|
|
|
return "I'm not just sure, I'm HIV Positive."
|
|
|
|
elif any(message.content.lower().startswith(term) for term in ["is this", "isthis", "isdis", "is dis"]):
|
|
|
|
res = random.randint(0, 100)
|
|
|
|
return "No, this is Patrick." if res > 90 else ""
|
|
|
|
elif " 69" in message.content or "69 " in message.content:
|
|
|
|
res = random.randint(0, 100)
|
|
|
|
return "Nice." if res > 70 else ""
|
|
|
|
elif message.content.lower() == "hey":
|
|
|
|
res = random.randint(0, 100)
|
|
|
|
return "You're finally awake!" if res > 90 else ""
|
|
|
|
return ""
|
|
|
|
|
|
|
|
|
2020-11-03 16:06:08 +01:00
|
|
|
def didier(bot, message):
|
2020-10-13 21:02:40 +02:00
|
|
|
ml = message.lower()
|
2020-11-03 16:06:08 +01:00
|
|
|
return ml in constants.prefixes or ml == "<@!{}>".format(bot.user.id)
|