Explorar el Código

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

tags/v1.8.0
Roxie Gibson hace 6 años
padre
commit
100207d0d9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      roxbot/err_handle.py

+ 1
- 1
roxbot/err_handle.py Ver fichero

@@ -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)

Cargando…
Cancelar
Guardar