csv出力のコードを修正その5

This commit is contained in:
suti7yk5032 2024-07-07 18:09:25 +09:00
parent ce3bf1cd3c
commit 9f59b8dab1

View file

@ -343,7 +343,7 @@ class Bot(discord.Client):
elif msg_split[0] == "/export": elif msg_split[0] == "/export":
export = self.report_export() export = self.report_export()
if export["result"] == "ok": if export["result"] == "ok":
await message.channel.send("使用履歴のレポートです。", file=discord.file(export["file_path"])) await message.channel.send("使用履歴のレポートです。", file=discord.File(export["file_path"]))
pass pass
elif export["result"] == "export_error": elif export["result"] == "export_error":
await message.channel.send("エクスポートに失敗しました。") await message.channel.send("エクスポートに失敗しました。")