diff --git a/src/bot.js b/src/bot.js index 6587945..8e1c90a 100644 --- a/src/bot.js +++ b/src/bot.js @@ -31,7 +31,7 @@ function removeTemp () { } removeTemp(); -const ytLinkRegexp = /^https:\/\/www\.youtube\.com/m; +const ytLinkRegexp = /^https:\/\/(www\.|m\.|)youtu(be\.com|\.be)/m; async function getFileSize(pathname) { const stream = fs.createReadStream(pathname);