Skip to content

Commit

Permalink
mention user permission added
Browse files Browse the repository at this point in the history
  • Loading branch information
CypherO2 committed Feb 26, 2025
1 parent cd1f3ff commit 104db79
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions elysium-bot/cogs/twitchcog.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
from datetime import datetime, date, time, timezone, timedelta


allowed_mentions = discord.AllowedMentions(roles=True)


def load_config():
with open("config.json") as config_file:
with open("elysium-bot/config.json") as config_file:
return json.load(config_file)


Expand Down Expand Up @@ -177,7 +180,9 @@ async def check_twitch_online_streamers(self):
notification["user_login"]
)
)
await channel.send(live_message, embed=embed)
await channel.send(
live_message, allowed_mentions=allowed_mentions, embed=embed
)
else:
embed = discord.Embed(
title="{}".format(notification["title"]),
Expand Down Expand Up @@ -206,7 +211,9 @@ async def check_twitch_online_streamers(self):
notification["user_login"]
)
)
await channel.send(live_message, embed=embed)
await channel.send(
live_message, allowed_mentions=allowed_mentions, embed=embed
)


async def setup(bot):
Expand Down

0 comments on commit 104db79

Please sign in to comment.