関数の名前ミスを修正

This commit is contained in:
suti7yk5032 2024-09-26 17:17:15 +09:00
parent 6ea299f661
commit 1cd58404c6

View file

@ -1153,7 +1153,7 @@ async def button_init(interaction: discord.Interaction, text_channel: discord.Te
async def run(): async def run():
print("Botを起動します...") print("Botを起動します...")
monitor = Monitor(search_frequency=dislocker.server_config["bot"]["monitor"]["search_frequency"], allowable_time=dislocker.server_config["bot"]["monitor"]["allowable_time"], fstop_time=dislocker.server_config["bot"]["monitor"]["fstop_time"]) monitor = Monitor(search_frequency=dislocker.server_config["bot"]["monitor"]["search_frequency"], allowable_time=dislocker.server_config["bot"]["monitor"]["allowable_time"], fstop_time=dislocker.server_config["bot"]["monitor"]["fstop_time"])
monitor_task = asyncio.create_task(monitor.start()) monitor_task = asyncio.create_task(monitor.search())
client_task = asyncio.create_task(client.run(dislocker.server_config["bot"]["token"])) client_task = asyncio.create_task(client.run(dislocker.server_config["bot"]["token"]))
await asyncio.gather(monitor_task, client_task) await asyncio.gather(monitor_task, client_task)