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.
Douyin_Web_Live/messages/roomuserseq.py
2021-11-29 18:27:02 +08:00

14 lines
402 B
Python

import time
from protobuf import message_pb2
from messages.base import Base
class RoomUserSeqMessage(Base):
def __init__(self):
self.instance = message_pb2.RoomUserSeqMessage()
def format_content(self):
return self.instance.totalUserStr
def __str__(self):
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【观看人数】' + self.format_content()