From ff40865285e9f26c93aec64c518fecc63e5ddf2c Mon Sep 17 00:00:00 2001 From: Arc <90333108+lastarc@users.noreply.github.com> Date: Tue, 13 Feb 2024 15:07:39 +0100 Subject: [PATCH] add vt.tiktok.com detection --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index adbc55a..3af38eb 100644 --- a/index.js +++ b/index.js @@ -77,7 +77,7 @@ client.on(Events.MessageCreate, async message => { message = msgRef; } - const videoUrlMatch = content.match(/https:\/\/(?:m|www|vm)?\.?tiktok\.com\/((?:.*\b(?:(?:usr|v|embed|user|video)\/|\?shareId=|&item_id=)(\d+))|\w+)/gim); + const videoUrlMatch = content.match(/https:\/\/(?:m|www|vm|vt)?\.?tiktok\.com\/((?:.*\b(?:(?:usr|v|embed|user|video)\/|\?shareId=|&item_id=)(\d+))|\w+)/gim); if (!videoUrlMatch) { return; @@ -94,4 +94,4 @@ client.on(Events.MessageCreate, async message => { }); }); -client.login(DISCORD_TOKEN); \ No newline at end of file +client.login(DISCORD_TOKEN);