Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
recolor role additions/removal to green/red
Browse files
app.py
CHANGED
@@ -258,7 +258,7 @@ async def on_member_update(before, after):
|
|
258 |
else:
|
259 |
moderator = "Unknown"
|
260 |
|
261 |
-
embed = Embed(color=Color.
|
262 |
embed.set_author(name=f"{after} ID: {after.id}", icon_url=after.avatar.url if after.avatar else bot.user.avatar.url)
|
263 |
embed.title = "Role Added"
|
264 |
embed.add_field(name="User", value=after.mention, inline=True)
|
@@ -277,7 +277,7 @@ async def on_member_update(before, after):
|
|
277 |
else:
|
278 |
moderator = "Unknown"
|
279 |
|
280 |
-
embed = Embed(color=Color.
|
281 |
embed.set_author(name=f"{after} ID: {after.id}", icon_url=after.avatar.url if after.avatar else bot.user.avatar.url)
|
282 |
embed.title = "Role Removed"
|
283 |
embed.add_field(name="User", value=after.mention, inline=True)
|
|
|
258 |
else:
|
259 |
moderator = "Unknown"
|
260 |
|
261 |
+
embed = Embed(color=Color.green())
|
262 |
embed.set_author(name=f"{after} ID: {after.id}", icon_url=after.avatar.url if after.avatar else bot.user.avatar.url)
|
263 |
embed.title = "Role Added"
|
264 |
embed.add_field(name="User", value=after.mention, inline=True)
|
|
|
277 |
else:
|
278 |
moderator = "Unknown"
|
279 |
|
280 |
+
embed = Embed(color=Color.red())
|
281 |
embed.set_author(name=f"{after} ID: {after.id}", icon_url=after.avatar.url if after.avatar else bot.user.avatar.url)
|
282 |
embed.title = "Role Removed"
|
283 |
embed.add_field(name="User", value=after.mention, inline=True)
|