更新README

This commit is contained in:
2020-01-03 09:48:16 +08:00
parent ee9556548d
commit 6a2288a45d
6 changed files with 10 additions and 43 deletions

5
api.py
View File

@ -371,12 +371,15 @@ class XiGuaLiveApi:
_gift = Gift(_each.raw)
if _gift.isAnimate() or _gift.isFinished:
self.onPresentEnd(_gift)
else:
self.onPresent(_gift)
elif _each.method == "WebcastChatMessage":
_chat = Chat(_each.raw)
# self.onChat(_chat)
self.onChat(_chat)
elif _each.method == "WebcastFansclubMessage":
_fansClubMessage = FansClubMessage()
_fansClubMessage.ParseFromString(_each.raw)
# 升级是1加入是2
if _fansClubMessage.type == 2:
_user = User(_fansClubMessage.user)
self.onJoin(_user)