Skip to content

Commit

Permalink
Merge pull request #127 from Team-TAU/bugfix/channel-point-webhook-setup
Browse files Browse the repository at this point in the history
Fixes bug with channel point redemption webhook not being set up prop…
  • Loading branch information
FiniteSingularity committed Feb 24, 2023
2 parents 3fe4311 + f15e3d5 commit 818fd87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tau/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def get_conditions(instance):
]
else:
return [{
key: config.CHANNEL_ID for key in instance.condition_schema['properties'].keys()
key: config.CHANNEL_ID for key in instance.condition_schema['required']
}]

def init_webhooks(base_url, worker_token):
Expand Down
3 changes: 2 additions & 1 deletion tau/core/worker_irc.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ async def connect(self):
delay = max(delay*2, 120)

async def send(self, channel, message):
await self.connection.send(f'PRIVMSG #{channel} :{message}')
if self.connection is not None and self.connection.open:
await self.connection.send(f'PRIVMSG #{channel} :{message}')

async def receive(self):
while True:
Expand Down

0 comments on commit 818fd87

Please sign in to comment.