From a4f4c10efce6f064b6a6541b70943691b201b91c Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sun, 27 Jan 2019 22:18:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Linux=E7=89=88=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/api.py b/api.py index 12547be..467646b 100644 --- a/api.py +++ b/api.py @@ -44,7 +44,7 @@ class XiGuaLiveApi: print(*args) def onPresent(self, gift: Gift): - print("礼物连击 : ", gift) + print("礼物连击 :", gift) def onPresentEnd(self, gift: Gift): print("感谢", gift) @@ -57,22 +57,22 @@ class XiGuaLiveApi: print(chat) def onEnter(self, msg: MemberMsg): - print("提示 : ", msg) + print("提示 :", msg) def onSubscribe(self, user: User): - print("消息 : ", user, "关注了主播") + print("消息 :", user, "关注了主播") def onJoin(self, user: User): print("感谢", user, "加入了粉丝团") def onMessage(self, msg: str): - print("消息 : ", msg) + print("消息 :", msg) def onLike(self, user: User): print("用户", user, "点了喜欢") def onLeave(self, json: any): - print("消息 : ", "主播离开一小会") + print("消息 :", "主播离开一小会") def _enterRoom(self): if not self.isValidRoom: @@ -150,9 +150,9 @@ class XiGuaLiveApi: if __name__ == "__main__": - room = 97621754276 # 永恒 + # room = 97621754276 # 永恒 # room = 75366565294 - # room = 83940182312 #Dae + room = 83940182312 #Dae if len(sys.argv) > 1: if sys.argv[-1] == "d": DEBUG = True