Add vxtiktok
All checks were successful
Build and Publish / build_and_publish (push) Successful in 51s
All checks were successful
Build and Publish / build_and_publish (push) Successful in 51s
This commit is contained in:
parent
8a72ea7ddd
commit
458863b13f
1 changed files with 3 additions and 0 deletions
|
@ -512,6 +512,9 @@ class NetworkCog(commands.Cog):
|
||||||
if parsed.netloc in ("x.com", "twitter.com"):
|
if parsed.netloc in ("x.com", "twitter.com"):
|
||||||
parsed = parsed._replace(netloc="fixupx.com")
|
parsed = parsed._replace(netloc="fixupx.com")
|
||||||
new_links.append(parsed.geturl())
|
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 new_links:
|
||||||
if len(content) == 1: # just link
|
if len(content) == 1: # just link
|
||||||
await message.delete(delay=0.1, reason="Fixed twitter link")
|
await message.delete(delay=0.1, reason="Fixed twitter link")
|
||||||
|
|
Loading…
Reference in a new issue