printデバック用

This commit is contained in:
suti7yk5032 2024-07-07 17:10:05 +09:00
parent 57f428e910
commit 62537a1038

View file

@ -262,6 +262,7 @@ class Bot(discord.Client):
print("DiscordのBotが起動しました。")
async def on_message(self, message):
print("メッセージ来た")
if message.author.bot:
pass
@ -349,7 +350,10 @@ class Bot(discord.Client):
dislocker = DL()
if dislocker.init_result == "ok":
print(dislocker.server_config)
intents = discord.Intents.default()
intents.message_content = True
bot = Bot(intents=intents)
bot.run(dislocker.server_config['bot']['token'])
else:
pass