verification: bad bot.
This commit is contained in:
parent
07dc7587f5
commit
59ea02d2cf
1 changed files with 12 additions and 7 deletions
|
@ -170,6 +170,10 @@ class Verification:
|
|||
chan = message.channel
|
||||
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
|
||||
success_role = guild.get_role(config.participant_role)
|
||||
|
||||
|
@ -182,7 +186,8 @@ class Verification:
|
|||
close_names += [(cn + '\n') for cn in close_names]
|
||||
allowed_names += [(an + '\r\n') for an in allowed_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]
|
||||
|
||||
# Finally, hash the stuff so that we can access them later :)
|
||||
|
@ -191,7 +196,7 @@ class Verification:
|
|||
md5_allow = [hashlib.md5(name.encode('utf-8')).hexdigest()
|
||||
for name in allowed_names]
|
||||
sha256_allow = [hashlib.sha256(name.encode('utf-8')).hexdigest()
|
||||
for name in allowed_names]
|
||||
for name in allowed_names]
|
||||
sha1_close = [hashlib.sha1(name.encode('utf-8')).hexdigest()
|
||||
for name in close_names]
|
||||
|
||||
|
@ -219,7 +224,7 @@ class Verification:
|
|||
await chan.send("💢 I don't have permission to do this.")
|
||||
|
||||
async def on_message_edit(self, before, after):
|
||||
if message.author.bot:
|
||||
if after.author.bot:
|
||||
return
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue