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)