verification: bad bot.

This commit is contained in:
Ave Ozkal 2019-02-25 12:16:26 +03:00
parent 07dc7587f5
commit 59ea02d2cf
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -170,6 +170,10 @@ class Verification:
chan = message.channel chan = message.channel
mcl = message.content.lower() mcl = message.content.lower()
if message.content.lower() in ["bad bot", "broken bot"]:
snark = random.choice(["bad human", "no u"])
return chan.send(snark)
# Get the role we will give in case of success # Get the role we will give in case of success
success_role = guild.get_role(config.participant_role) success_role = guild.get_role(config.participant_role)
@ -182,7 +186,8 @@ class Verification:
close_names += [(cn + '\n') for cn in close_names] close_names += [(cn + '\n') for cn in close_names]
allowed_names += [(an + '\r\n') for an in allowed_names] allowed_names += [(an + '\r\n') for an in allowed_names]
close_names += [(cn + '\r\n') for cn in close_names] close_names += [(cn + '\r\n') for cn in close_names]
allowed_names += [(an + '\r') for an in allowed_names] # [ ͡° ͜ᔦ ͡°] 𝐖𝐞𝐥𝐜𝐨𝐦𝐞 𝐭𝐨 𝐌𝐚𝐜 𝐎𝐒 𝟗. # [ ͡° ͜ᔦ ͡°] 𝐖𝐞𝐥𝐜𝐨𝐦𝐞 𝐭𝐨 𝐌𝐚𝐜 𝐎𝐒 𝟗.
allowed_names += [(an + '\r') for an in allowed_names]
close_names += [(cn + '\r') for cn in close_names] close_names += [(cn + '\r') for cn in close_names]
# Finally, hash the stuff so that we can access them later :) # Finally, hash the stuff so that we can access them later :)
@ -219,7 +224,7 @@ class Verification:
await chan.send("💢 I don't have permission to do this.") await chan.send("💢 I don't have permission to do this.")
async def on_message_edit(self, before, after): async def on_message_edit(self, before, after):
if message.author.bot: if after.author.bot:
return return
try: try: