This repository has been archived on 2024-09-10. You can view files and clone it, but cannot push or open issues or pull requests.

14 lines
436 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import time
from messages.base import Base
from protobuf import message_pb2
class ControlMessage(Base):
def __init__(self):
self.instance = message_pb2.ChatMessage()
def __str__(self):
# 基本上都是下播了比如主播离开了违规被Ban了啥的有这个消息直播间信息必然发生变化
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【直播间信息】'