File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -766,7 +766,7 @@ def load_data_list(type):
766766 # Define how you want to handle specific events via decorator
767767 @client .on ("connect" )
768768 async def on_connect (_ : ConnectEvent ):
769- logging .info ("连接到 房间ID:" , client .room_id )
769+ logging .info (f "连接到 房间ID:{ client .room_id } " )
770770
771771 @client .on ("disconnect" )
772772 async def on_disconnect (event : DisconnectEvent ):
@@ -890,11 +890,12 @@ async def on_follow(event: FollowEvent):
890890 client .run ()
891891
892892 except LiveNotFound :
893- logging .info (f"用户ID: ` @{ client .unique_id } ` 好像不在线捏, 1分钟后重试..." )
893+ logging .info (f"用户ID: @{ client .unique_id } 好像不在线捏, 1分钟后重试..." )
894894
895895# 退出程序
896896def exit_handler (signum , frame ):
897- logging .info ("Received signal:" , signum )
897+ logging .info (f"Received signal:{ signum } " )
898+
898899 os ._exit (0 )
899900
900901if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments