delete OF message

This commit is contained in:
2025-08-28 01:20:05 +01:00
parent 5dbdd3daa3
commit 624eae6c33

2
bot.py
View File

@@ -37,6 +37,8 @@ async def on_message(message):
webhook = next((w for w in webhooks if w.name == 'FagOSWebhook'), None)
if webhook is None:
webhook = await message.channel.create_webhook(name='FagOSWebhook')
await message.delete() # Delete the original
# Send the modified message via webhook with original user's username and avatar
await webhook.send(