From e3b82555d6ab2b58372d619b310602b85607a35a Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sun, 20 Jan 2019 23:28:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=83=A8=E5=88=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gift.py | 2 +- WinMain.py | 3 ++- api.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Gift.py b/Gift.py index c6e5a3a..4ff309e 100644 --- a/Gift.py +++ b/Gift.py @@ -42,7 +42,7 @@ class Gift: giftN = self.giftList[self.ID]["Name"] else: giftN = "未知礼物[{}]".format(self.ID) - return "感谢 {user} 送出的 {count} 个 {name}".format(user= self.user, count= self.count, name= giftN) + return "{user} 送出的 {count} 个 {name}".format(user= self.user, count= self.count, name= giftN) def __unicode__(self): return self.__str__() \ No newline at end of file diff --git a/WinMain.py b/WinMain.py index 7e51359..d6185d7 100644 --- a/WinMain.py +++ b/WinMain.py @@ -146,7 +146,7 @@ class WinMain(Api): def onPresentEnd(self, gift: Gift): set_cmd_text_color(BACKGROUND_WHITE | FOREGROUND_BLACK) - print(gift) + print("感谢", gift) resetColor() def onLike(self, user: User): @@ -155,6 +155,7 @@ class WinMain(Api): def onLeave(self, json: any): return + def warning(*args): print(*args) diff --git a/api.py b/api.py index e4c590c..81f4d02 100644 --- a/api.py +++ b/api.py @@ -43,7 +43,7 @@ class XiGuaLiveApi: print("礼物连击:", gift) def onPresentEnd(self, gift: Gift): - print("礼物", gift) + print("感谢", gift) def onAd(self, i): # print(i)