Skip to content

Commit

Permalink
add vt.tiktok.com detection
Browse files Browse the repository at this point in the history
  • Loading branch information
lastarc authored Feb 13, 2024
1 parent 7b51177 commit ff40865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -94,4 +94,4 @@ client.on(Events.MessageCreate, async message => {
});
});

client.login(DISCORD_TOKEN);
client.login(DISCORD_TOKEN);

0 comments on commit ff40865

Please sign in to comment.