i'm using the following code that makes the bot reply to the message with the x.com link from the message but replaced with fxtwitter.com, but only picks up the first link sent.
how could i modify this code for the bot to reply with ALL links in the message and send them in a reply with each link on a separate line?
help is much appreciated, thank you very much.
if 'twitter.com' in message.content and 'fxtwitter.com' not in message.content and 'fixupx.com' not in message.content and 'vxtwitter.com' not in message.content:
urls = re.findall(r'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', message.content)
await message.edit(suppress=True)
await message.reply(urls[0].replace("twitter.com", "fxtwitter.com"), mention_author=False)
await asyncio.sleep(3)
await message.edit(suppress=True) #in case the embed doesn't get removed from the original message the first time, this happened many times and this fixes that issue