Skip to content

Commit

Permalink
fixed channel ids
Browse files Browse the repository at this point in the history
  • Loading branch information
royh02 committed Jun 4, 2021
1 parent f220330 commit b725aa8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/discordbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def announcer(time_delta):
if events:
msg = f"**What's happening {times_msg[time_delta]}**"
asyncio.run_coroutine_threadsafe(
self.client.get_channel(ROY_TEST_SERVER_CHANNEL_ID).send(msg),
self.client.get_channel(ANNOUNCEMENTS_CHANNEL_ID).send(msg),
self.loop,
).result(TIMEOUT_SECS)
print("Sending: ", time_delta) # debugging
Expand All @@ -240,9 +240,7 @@ def send_embed(events):
if event.link:
embed.add_field(name="Link", value=event.link, inline=False)
asyncio.run_coroutine_threadsafe(
self.client.get_channel(ROY_TEST_SERVER_CHANNEL_ID).send(
embed=embed
),
self.client.get_channel(ANNOUNCEMENTS_CHANNEL_ID).send(embed=embed),
self.loop,
).result(TIMEOUT_SECS)

Expand Down

0 comments on commit b725aa8

Please sign in to comment.