diff --git a/dislocker.py b/dislocker.py index ab09a42..f958e0e 100644 --- a/dislocker.py +++ b/dislocker.py @@ -54,7 +54,7 @@ class DL(): result = {"result": "error"} finally: - return result + pass class Bot(discord.Client): @@ -305,7 +305,7 @@ class Bot(discord.Client): await message.channel.send("エクスポートに失敗しました。") dislocker = DL() -if dislocker["result"] == "ok": +if dislocker.result["result"] == "ok": intents = discord.Intents.default() intents.message_content = True bot = Bot(intents=intents)