Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -175,9 +175,9 @@ async def on_member_ban(guild, banned_user):
|
|
| 175 |
embed.add_field(name="Reason", value=ban_reason, inline=False)
|
| 176 |
embed.set_footer(text=f"{convert_to_timezone(datetime.utcnow(), zurich_tz)}")
|
| 177 |
|
| 178 |
-
user = bot.get_user(811235357663297546)
|
| 179 |
-
dm_message = await user.send(content=content, embed=embed)
|
| 180 |
-
|
| 181 |
|
| 182 |
except Exception as e:
|
| 183 |
print(f"Error: {e}")
|
|
@@ -201,9 +201,9 @@ async def on_member_unban(guild, unbanned_user):
|
|
| 201 |
embed.add_field(name="Nickname", value=moderator.nick, inline=True)
|
| 202 |
embed.set_footer(text=f"{convert_to_timezone(datetime.utcnow(), zurich_tz)}")
|
| 203 |
|
| 204 |
-
user = bot.get_user(811235357663297546)
|
| 205 |
-
dm_message = await user.send(content=content, embed=embed)
|
| 206 |
-
|
| 207 |
|
| 208 |
except Exception as e:
|
| 209 |
print(f"Error: {e}")
|
|
|
|
| 175 |
embed.add_field(name="Reason", value=ban_reason, inline=False)
|
| 176 |
embed.set_footer(text=f"{convert_to_timezone(datetime.utcnow(), zurich_tz)}")
|
| 177 |
|
| 178 |
+
#user = bot.get_user(811235357663297546)
|
| 179 |
+
#dm_message = await user.send(content=content, embed=embed)
|
| 180 |
+
await bot.log_channel.send(content=content, embed=embed)
|
| 181 |
|
| 182 |
except Exception as e:
|
| 183 |
print(f"Error: {e}")
|
|
|
|
| 201 |
embed.add_field(name="Nickname", value=moderator.nick, inline=True)
|
| 202 |
embed.set_footer(text=f"{convert_to_timezone(datetime.utcnow(), zurich_tz)}")
|
| 203 |
|
| 204 |
+
#user = bot.get_user(811235357663297546)
|
| 205 |
+
#dm_message = await user.send(content=content, embed=embed)
|
| 206 |
+
await bot.log_channel.send(content=content, embed=embed)
|
| 207 |
|
| 208 |
except Exception as e:
|
| 209 |
print(f"Error: {e}")
|