From 6b3ca00d355498b0866c78a4ca49c6c21fc78801 Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Mon, 13 Jan 2020 08:19:03 +0900 Subject: [PATCH] Fix superchat/sticker display amount --- pytchat/processors/default/renderer/paidmessage.py | 4 ---- pytchat/processors/default/renderer/paidsticker.py | 4 ---- 2 files changed, 8 deletions(-) diff --git a/pytchat/processors/default/renderer/paidmessage.py b/pytchat/processors/default/renderer/paidmessage.py index 270d63c..c215552 100644 --- a/pytchat/processors/default/renderer/paidmessage.py +++ b/pytchat/processors/default/renderer/paidmessage.py @@ -10,13 +10,9 @@ class LiveChatPaidMessageRenderer(BaseRenderer): def get_snippet(self): super().get_snippet() - - self.author.name = self.renderer["authorName"]["simpleText"] - amountDisplayString, symbol, amount =( self.get_amountdata(self.renderer) ) - self.message = self.get_message(self.renderer) self.amountValue= amount self.amountString = amountDisplayString self.currency= currency.symbols[symbol]["fxtext"] if currency.symbols.get(symbol) else symbol diff --git a/pytchat/processors/default/renderer/paidsticker.py b/pytchat/processors/default/renderer/paidsticker.py index 6d89df3..8ec4828 100644 --- a/pytchat/processors/default/renderer/paidsticker.py +++ b/pytchat/processors/default/renderer/paidsticker.py @@ -10,13 +10,9 @@ class LiveChatPaidStickerRenderer(BaseRenderer): def get_snippet(self): super().get_snippet() - - self.author.name = self.renderer["authorName"]["simpleText"] - amountDisplayString, symbol, amount =( self.get_amountdata(self.renderer) ) - self.message = "" self.amountValue = amount self.amountString = amountDisplayString self.currency = currency.symbols[symbol]["fxtext"] if currency.symbols.get(symbol) else symbol