Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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:
|