ソースを参照

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

tags/v1.8.0
Roxie Gibson 6年前
コミット
100207d0d9
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      roxbot/err_handle.py

+ 1
- 1
roxbot/err_handle.py ファイルの表示

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

読み込み中…
キャンセル
保存