accept custom sockfile

This commit is contained in:
Luna Mendes 2017-12-03 01:55:40 -03:00
parent 9834820efe
commit 62f98be69d
3 changed files with 9 additions and 5 deletions

View file

@ -67,7 +67,10 @@ class Rsudo(Cog):
return discord.utils.get(_user.roles, id=self.bot.config.admin_role) is not None
reaction, admin = await self.bot.wait_for('reaction_add', check=check)
await msg.clear_reactions()
try:
await msg.clear_reactions()
except:
log.error('can not remove reactions')
should_execute = emoji.get(reaction.emoji)