lunarflu HF Staff commited on
Commit
b3305fd
·
verified ·
1 Parent(s): f3e1ce2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -132,10 +132,12 @@ async def on_message(message):
132
 
133
  if message.channel.id == 1359016583590051981: # bot-test for now, switch to official one if it works + give perms to ping the role
134
  new_content = message.content.replace("https://x.com", "https://fxtwitter.com").replace("https://twitter.com", "https://fxtwitter.com")
135
-
 
 
136
  try:
137
- await message.delete()
138
- await message.channel.send(f'Hey <@&1359026656114638858> , *yeet** just posted a new banger! 😎 \n{new_content}')
139
  except discord.Forbidden:
140
  print("Missing permissions to delete or send messages.")
141
  except discord.HTTPException as e:
 
132
 
133
  if message.channel.id == 1359016583590051981: # bot-test for now, switch to official one if it works + give perms to ping the role
134
  new_content = message.content.replace("https://x.com", "https://fxtwitter.com").replace("https://twitter.com", "https://fxtwitter.com")
135
+ # 1375548644379332658 = alerts
136
+ # 1359026656114638858 = tweets
137
+
138
  try:
139
+ await message.delete()
140
+ await message.channel.send(f'Hey <@&1359026656114638858> , *yeet** just posted a new banger! 😎 \n{new_content}') #
141
  except discord.Forbidden:
142
  print("Missing permissions to delete or send messages.")
143
  except discord.HTTPException as e: