lunarflu HF staff commited on
Commit
71bd8ed
1 Parent(s): 7b3eccf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -56,14 +56,12 @@ async def on_message(message):
56
 
57
  ask_for_help = await bot.fetch_channel(1019883044724822016)
58
  if ask_for_help.last_message_id == message.channel.id:
59
- title = message.embeds[0].title if message.embeds else "No Title"
60
  content = message.content
61
-
62
  try:
63
  # title
64
  response = slack_client.chat_postMessage(
65
  channel=SLACK_CHANNEL_ID,
66
- text=f"New post in {message.channel.name} by {message.author}:\n*{title}*"
67
  )
68
  # reply in thread
69
  thread_ts = response['ts']
 
56
 
57
  ask_for_help = await bot.fetch_channel(1019883044724822016)
58
  if ask_for_help.last_message_id == message.channel.id:
 
59
  content = message.content
 
60
  try:
61
  # title
62
  response = slack_client.chat_postMessage(
63
  channel=SLACK_CHANNEL_ID,
64
+ text=f"New post in #ask-for-help by {message.author}:*{message.channel.name}*"
65
  )
66
  # reply in thread
67
  thread_ts = response['ts']