Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions cogs/monitors/misc/fixsocials.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, bot):

# regex for twitter urls
self.twitter_pattern = re.compile(r"(https:\/\/(www.)?(twitter|x)\.com\/[a-zA-Z0-9_]+\/status\/[0-9]+)")


@commands.Cog.listener()
async def on_message(self, message: discord.Message):
Expand Down Expand Up @@ -117,7 +117,7 @@ async def fix_tiktok(self, message: discord.Message, link: str):

async def fix_instagram(self, message: discord.Message, link: str):
link = link.replace("www.", "")
link = link.replace("instagram.com", "d.ddinstagram.com")
link = link.replace("instagram.com", "kkinstagram.com")

await message.reply(f"[I hate instagram but here you go]({link})", mention_author=False)
await asyncio.sleep(0.5)
Expand Down Expand Up @@ -150,8 +150,7 @@ async def fix_twitter(self, message: discord.Message, link: str):
await message.reply(f"[I hate {random.choice(['twitter', '𝕏', 'Elon Musk'])} but here you go]({link})", mention_author=False)
await asyncio.sleep(0.5)
await message.edit(suppress=True)




async def setup(bot):
await bot.add_cog(FixSocials(bot))