This commit is contained in:
tursom 2024-10-11 18:07:11 +08:00
parent 91edac61e0
commit d20d64204a

View File

@ -116,11 +116,11 @@ class MyHandler(FileSystemEventHandler):
room.state_changed = False
if room.state == 1:
msg = f"{room.db_room.liver_name} 开锅了!"
msg = f"{room.db_room.liver_name} 开锅了!\nhttps://live.bilibili.com/{room.room_id}"
requests.post("http://turntf:18846/notify", json={"msg": msg})
elif room.state == 2:
msg = f"{room.db_room.liver_name} 下锅了!"
msg = f"{room.db_room.liver_name} 下锅了!\nhttps://live.bilibili.com/{room.room_id}"
requests.post("http://turntf:18846/notify", json={"msg": msg})