Skip to content

Commit

Permalink
Merge pull request #129 from yaakiyu/master
Browse files Browse the repository at this point in the history
fix: エラーログが正しく表示されない問題を修正
  • Loading branch information
takumi0213 authored Aug 14, 2024
2 parents d36848b + dc02f57 commit 5296063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ async def on_command_error(ctx, error):
# その他例外
from traceback import format_exception as f_exc
ch = await bot.fetch_channel(652127085598474242)
msg = await ch.send(embed=ut.getEmbed("エラーログ", f"コマンド:`{ctx.command.full_parent_name}`\n```py\n{f_exc(error)}```", bot.ec, "サーバー", getattr(ctx.guild,"name","DM or GDM実行"), "実行メンバー", ctx.author.name, "メッセージ内容", ctx.message.content or "(本文なし)"))
msg = await ch.send(embed=ut.getEmbed("エラーログ", f"コマンド:`{ctx.command.full_parent_name}`\n```py\n{''.join(f_exc(error))}```", bot.ec, "サーバー", getattr(ctx.guild,"name","DM or GDM実行"), "実行メンバー", ctx.author.name, "メッセージ内容", ctx.message.content or "(本文なし)"))
await ctx.send(embed=ut.getEmbed(await ctx._("com-error-t"), await ctx._("cmd-other-d", "詳細は無効化されています…。"), bot.ec, "error id", msg.id, "サポートが必要ですか?", "[サポートサーバー](https://discord.gg/vtn2V3v)に参加して、「view-思惟奈ちゃんch」役職をつけて質問してみましょう!"))


Expand Down

0 comments on commit 5296063

Please sign in to comment.