lunarflu HF staff commited on
Commit
3b94d3a
1 Parent(s): 32e47fb

DM improvement message_link = f"[#{message.channel.name}]({message.jump_url})" await user.send(f"{number_of_messages}|{message_link}|{message.author}: {message.content}")

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -62,7 +62,8 @@ async def on_message(message):
62
  if message.author != bot.user:
63
  user = bot.get_user(811235357663297546) #811235357663297546
64
  number_of_messages = number_of_messages + 1
65
- await user.send(f"->{number_of_messages}<-|New message from {message.author} in #{message.channel.name}: {message.content}")
 
66
 
67
  # Allow other event handlers to process the message
68
  await bot.process_commands(message)
 
62
  if message.author != bot.user:
63
  user = bot.get_user(811235357663297546) #811235357663297546
64
  number_of_messages = number_of_messages + 1
65
+ message_link = f"[#{message.channel.name}]({message.jump_url})"
66
+ await user.send(f"{number_of_messages}|{message_link}|{message.author}: {message.content}")
67
 
68
  # Allow other event handlers to process the message
69
  await bot.process_commands(message)