タイムアウト時のログ送信を無効にする
This commit is contained in:
parent
af62f218c2
commit
5de0d66829
1 changed files with 2 additions and 2 deletions
|
@ -999,8 +999,8 @@ class Monitor():
|
|||
cursor.execute("SELECT * FROM club_member WHERE member_id = %s", (member_id,))
|
||||
user_info = cursor.fetchall()
|
||||
stop = dislocker.stop(discord_user_id=user_info[0][3], bot_about="タイムアウトでBotによる強制停止。")
|
||||
discord_user_id = dislocker.get_discord_user_id(member_id=member_id)["discord_user_id"]
|
||||
asyncio.run_coroutine_threadsafe(send_log(mode="timeout", pc_number=i[0], discord_user_id=discord_user_id))
|
||||
#discord_user_id = dislocker.get_discord_user_id(member_id=member_id)["discord_user_id"]
|
||||
#asyncio.run_coroutine_threadsafe(send_log(mode="timeout", pc_number=i[0], discord_user_id=discord_user_id))
|
||||
dislocker.log(title=f"[INFO] パスワードのタイムアウト時間に達したため、強制停止されました。", flag=0)
|
||||
result = {"result": "STOP", "details": str(pc_usage)}
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue