modified: src/trigger/ytdl.js
This commit is contained in:
parent
7e791f61d1
commit
c7a48d4fae
@ -9,7 +9,7 @@ module.exports = (bot, trigger, lib) => {
|
||||
call: new RegExp('(https?://)?(www\\.)?(yotu\\.be/|youtube\\.com/)?((.+/)?(watch(\\?v=|.+&v=))?(v=)?)([\\w_-]{11})(&.+)?', 'gi'),
|
||||
level: 0,
|
||||
func: (e) => {
|
||||
if(e.channel.getName() == '#kbot-dev') {
|
||||
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
|
||||
tmp.forEach((entry,i,a) => {
|
||||
|
Loading…
Reference in New Issue
Block a user