Skip to content

Commit

Permalink
Merge pull request #22 from lurkingryuu/remaster
Browse files Browse the repository at this point in the history
Remaster merge
  • Loading branch information
lurkingryuu authored Jun 24, 2023
2 parents 71c6791 + cf89d03 commit eb73113
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ def tag_group(user: str, channel: str, positions: list[str], message: str):

for position in positions:
members = [] # keep track of members in the channel
if position not in data:
send_chat_message_ephemeral(
channel, user,
f"Hey <@{user}>!\nLooks like there is no one in {position}s in this channel")
return
for member in data[position]:
if member["id"] in channel_members_ids:
members.append(member)
Expand All @@ -138,9 +133,6 @@ def tag_group(user: str, channel: str, positions: list[str], message: str):
f"Hey <@{user}>!\nLooks like there is no one in {position}s in this channel")

if len(tags) == 0:
send_chat_message_ephemeral(
channel, user,
f"Hey <@{user}>!\nLooks like there is no one from {', '.join(positions)} in this channel")
return

# configuring the message to be sent to the channel
Expand Down

0 comments on commit eb73113

Please sign in to comment.