补充fansclub信息输出

This commit is contained in:
Jerry Yan 2022-06-05 22:38:59 +08:00
parent d48f7c772f
commit dc1800e492
2 changed files with 16 additions and 0 deletions

View File

@ -1,6 +1,7 @@
from messages.base import Base
from messages.chat import ChatMessage
from messages.control import ControlMessage
from messages.fansclub import FansclubMessage
from messages.gift import GiftMessage
from messages.like import LikeMessage
from messages.member import MemberMessage
@ -9,6 +10,9 @@ from messages.social import SocialMessage
class IOutput():
def __del__(self):
self.terminate()
def output(self, message_type: str, message_obj: Base):
...
@ -33,8 +37,14 @@ class IOutput():
def control_output(self, message: ControlMessage):
...
def fansclub_output(self, message: FansclubMessage):
...
def other_output(self, message_type: str, message_raw: bytes):
...
def error_output(self, message_type: str, message_raw: bytes, exception: Exception):
...
def terminate(self):
...

View File

@ -31,3 +31,9 @@ class Print(IOutput):
def userseq_output(self, msg):
print(f"\n{YELLOW}[+] {msg} {RESET}")
def control_output(self, msg):
print(f"\n{CYAN}[+] {msg} {RESET}")
def fansclub_output(self, msg):
print(f"\n{GREEN}[+] {msg} {RESET}")