This commit is contained in:
Flummi 2016-08-30 21:24:02 +00:00
parent ed06f0b3d9
commit 2ca6fefd06

View File

@ -13,7 +13,6 @@ module.exports = (bot, trigger, lib) => {
if(e.channel.getName() == '#f0ck') { if(e.channel.getName() == '#f0ck') {
if(!e.message.match(/\!ignore/)) { if(!e.message.match(/\!ignore/)) {
var tmp = e.message.match(/https?:\/\/(www\.)?(yotu\.be\/|youtube\.com\/)?((.+\/)?(watch(\?v=|.+&v=))?(v=)?)([\w_-]{11})(&.+)?/gi); // get links var tmp = e.message.match(/https?:\/\/(www\.)?(yotu\.be\/|youtube\.com\/)?((.+\/)?(watch(\?v=|.+&v=))?(v=)?)([\w_-]{11})(&.+)?/gi); // get links
e.reply(tmp);
tmp.forEach((entry,i,a) => { tmp.forEach((entry,i,a) => {
var dl = true; var dl = true;
var tmpdest = uuid.v1().split('-')[0]; var tmpdest = uuid.v1().split('-')[0];