Skip to content

Commit

Permalink
starboard now ignores welcome channel
Browse files Browse the repository at this point in the history
  • Loading branch information
oh-finks committed Jan 5, 2024
1 parent 6f6e924 commit 7325f9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ class Config:
starboard_channel: int = int(
getenv("DISCOX_STARBOARD_CHANNEL", "0")
) # starboard channel
welcome_channel: int = int(
getenv("SERVER_WELCOME_CHANNEL", "1056171331059732541")
) # welcome channel
minecraft_url: str = getenv("MINECRAFT_URL", "minecraft.virbos.xyz")
minecraft_port: int = getenv("MINECRAFT_PORT", 25565)

Expand Down
2 changes: 2 additions & 0 deletions bot/events/on_raw_reaction_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ async def starboard(self, payload: discord.RawReactionActionEvent) -> None:
starboard = await self.bot.fetch_channel(Config.starboard_channel)
#if payload.emoji.name != REACTION:
# return
if payload.channel_id == Config.welcome_channel:
return
channelObj = await self.bot.fetch_channel(payload.channel_id)
messageObj = await channelObj.fetch_message(payload.message_id)
if messageObj.author.id == self.bot.user.id:
Expand Down

0 comments on commit 7325f9f

Please sign in to comment.