printデバック用
This commit is contained in:
parent
57f428e910
commit
62537a1038
1 changed files with 4 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue