添加SuperChat

This commit is contained in:
John Smith
2019-09-23 21:43:37 +08:00
parent 922d4d6615
commit f5d609df40
2 changed files with 98 additions and 3 deletions

View File

@@ -25,6 +25,9 @@ class MyBLiveClient(blivedm.BLiveClient):
async def _on_buy_guard(self, message: blivedm.GuardBuyMessage):
print(f'{message.username} 购买{message.gift_name}')
async def _on_super_chat(self, message: blivedm.SuperChatMessage):
print(f'醒目留言 ¥{message.price} {message.uname}{message.message}')
async def main():
# 139是黑桐谷歌的直播间