lunarflu HF staff commited on
Commit
bb08ef2
1 Parent(s): 5849c81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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
- #await bot.log_channel.send(content=content, embed=embed)
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
- #await bot.log_channel.send(content=content, embed=embed)
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}")