Update dad.py

This commit is contained in:
Ianardo DiCaprio 2019-08-09 00:49:34 +01:00 committed by GitHub
parent 720ceb0280
commit 453f46bdc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -105,8 +105,10 @@ class Dad(Cog):
out = message.author.mention
else:
out = lower[4:]
await message.channel.send("Hi {}, I'm {}!".format(out, guild.me.display_name))
try:
await message.channel.send("Hi {}, I'm {}!".format(out, guild.me.display_name))
except discord.HTTPException:
return
self.cooldown[guild.id] = datetime.now() + timedelta(
seconds=(await guild_config.cooldown())