Add vxtiktok
All checks were successful
Build and Publish / build_and_publish (push) Successful in 51s

This commit is contained in:
Nexus 2024-07-28 20:31:09 +01:00
parent 8a72ea7ddd
commit 458863b13f

View file

@ -512,6 +512,9 @@ class NetworkCog(commands.Cog):
if parsed.netloc in ("x.com", "twitter.com"):
parsed = parsed._replace(netloc="fixupx.com")
new_links.append(parsed.geturl())
elif parsed.netloc in ("tiktok.com", "vm.tiktok.com"):
parsed = parsed._replace(netloc="vxtiktok.com")
new_links.append(parsed.geturl())
if new_links:
if len(content) == 1: # just link
await message.delete(delay=0.1, reason="Fixed twitter link")