testing on prod

This commit is contained in:
Ave Ozkal 2019-04-24 11:59:04 +03:00
parent 170116a641
commit 8a152ed8ef
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -251,7 +251,9 @@ class Verification(Cog):
{self.hash_choice} - self.blacklisted_hashes {self.hash_choice} - self.blacklisted_hashes
for algo in wrong_hash_algos: for algo in wrong_hash_algos:
for name in itertools.chain(allowed_names, close_names): for name in itertools.chain(allowed_names, close_names):
if hashlib.new(algo, name.encode('utf-8')).hexdigest() in message.content.lower(): if hashlib.new(algo, name.encode('utf-8')).hexdigest() in mcl:
log_channel = self.bot.get_channel(config.log_channel)
await log_channel.send(f"User {message.author.mention} tried verification with algo {algo} instead of {self.hash_choice}.")
return await chan.send(f"{message.author.mention} :no_entry: Close, but not quite. Go back and re-read!") return await chan.send(f"{message.author.mention} :no_entry: Close, but not quite. Go back and re-read!")
if full_name in message.content or str(member.id) in message.content or member.name in message.content or discrim in message.content: if full_name in message.content or str(member.id) in message.content or member.name in message.content or discrim in message.content: