Browse Source

fixed error in unhandled errors in the error handler so they should be dmed to me now

tags/v1.8.0
Roxie Gibson 6 years ago
parent
commit
05d5a33fe6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      roxbot/err_handle.py

+ 1
- 1
roxbot/err_handle.py View File

@@ -20,7 +20,7 @@ class ErrHandle:
embed.add_field(name='Event', value=event)
embed.description = '```py\n{}\n```'.format(traceback.format_exc())
embed.timestamp = datetime.datetime.utcnow()
await self.owner.send(embed=embed)
await self.bot.get_user(self.bot.owner_id).send(embed=embed)

async def on_command_error(self, ctx, error):
self.owner = self.bot.get_user(self.bot.owner_id)

Loading…
Cancel
Save