fixed undefined function
This commit is contained in:
parent
f547fcc107
commit
c0c712d1c0
@ -34,8 +34,6 @@ class SacrificeCog(commands.Cog):
|
||||
@commands.Cog.listener()
|
||||
async def on_raw_reaction_add(self, payload):
|
||||
tracked = await self.config.tracked_msgs()
|
||||
await self.log(str(payload.message_id))
|
||||
await self.log(tracked.keys())
|
||||
if str(payload.message_id) in tracked.keys():
|
||||
# fetch channel
|
||||
channel = await self.bot.fetch_channel(LISTENING_CHANNEL) # channel
|
||||
@ -58,7 +56,6 @@ class SacrificeCog(commands.Cog):
|
||||
opponent = opponents[0]
|
||||
|
||||
if str(payload.user_id) == str(opponent.id) and payload.emoji.name == "👍":
|
||||
await self.log("true")
|
||||
outcome = orig_msg.content.split(" ")[2]
|
||||
if SacrificeCog.is_valid_winloss(outcome):
|
||||
for c in outcome:
|
||||
|
Loading…
Reference in New Issue
Block a user