fixed regex
This commit is contained in:
parent
4f0c0e63fd
commit
805c7605c8
|
@ -6,13 +6,13 @@ var probe = require('node-ffprobe');
|
|||
module.exports = (bot, trigger, lib) => {
|
||||
trigger.add({
|
||||
name: 'ytdl',
|
||||
call: /https?:\/\/(www\.)?(yotu\.be\/|youtube\.com\/)?((.+\/)?(watch(\?v=|.+&v=))?(v=)?)([\w_-]{11})(&.+)?/gi,
|
||||
call: /https?:\/\/(www\.)?(yotu\.be\/|youtube\.com\/)((.+\/)?(watch(\?v=|.+&v=))?(v=)?)([\w_-]{11})(&.+)?/gi,
|
||||
level: 0,
|
||||
active: 1,
|
||||
func: (e) => {
|
||||
if(e.channel.getName() == '#f0ck') {
|
||||
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
|
||||
tmp.forEach((entry,i,a) => {
|
||||
var dl = true;
|
||||
var tmpdest = uuid.v1().split('-')[0];
|
||||
|
|
Loading…
Reference in New Issue
Block a user