lunarflu HF staff commited on
Commit
864386e
1 Parent(s): 5d3ef6c

[huggingmod] setting up @alerts ping

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -34,6 +34,9 @@ bot = commands.Bot(command_prefix='!', intents=intents)
34
 
35
  # todo
36
  '''
 
 
 
37
  discord.gg / discord/invite (block completely, need to be cautious)
38
  attempted @everyone / @here pings, or trying to use those strings (ping @alerts)
39
  ping alerts for list of keywords
@@ -154,7 +157,7 @@ async def on_guild_role_update(before, after):
154
 
155
  if before.permissions.administrator != after.permissions.administrator:
156
  # changes involving the administrator permission / sensitive permissions (can help to prevent mistakes)
157
- certain_role_id = 1106995261487710411 # role to ping (@alerts)
158
  certain_role = after.guild.get_role(certain_role_id)
159
  embed = Embed(description=f'Role {after.mention} had its administrator permission {"enabled" if after.permissions.administrator else "disabled"}', color=Color.red())
160
  await bot.log_channel.send(content=certain_role.mention, embed=embed)
 
34
 
35
  # todo
36
  '''
37
+ - test what works
38
+ - add role changes (moving roles)
39
+
40
  discord.gg / discord/invite (block completely, need to be cautious)
41
  attempted @everyone / @here pings, or trying to use those strings (ping @alerts)
42
  ping alerts for list of keywords
 
157
 
158
  if before.permissions.administrator != after.permissions.administrator:
159
  # changes involving the administrator permission / sensitive permissions (can help to prevent mistakes)
160
+ certain_role_id = 1108342563628404747 # role to ping (@alerts)
161
  certain_role = after.guild.get_role(certain_role_id)
162
  embed = Embed(description=f'Role {after.mention} had its administrator permission {"enabled" if after.permissions.administrator else "disabled"}', color=Color.red())
163
  await bot.log_channel.send(content=certain_role.mention, embed=embed)