This commit is contained in:
Flummi 2016-09-08 15:46:14 +00:00
parent a9a33d593a
commit 566da1c205
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ module.exports = (bot, trigger, lib) => {
level: 0,
active: 1,
func: (e) => {
if(e.channel.getName() == '#kbot-dev') {
if(e.channel.getName() == '#f0ck' || e.channel.getName() == '#kbot-dev') {
if(!e.message.match(/\!ignore$/)) {
var tmp = e.message.match(/https?:\/\/[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?/gi); // get links
tmp.forEach((entry,i,a) => {

View File

@ -10,7 +10,7 @@ module.exports = (bot, trigger, lib) => {
level: 0,
active: 1,
func: (e) => {
if(e.channel.getName() == '#f0ck') {
if(e.channel.getName() == '#f0ck' || e.channel.getName() == '#kbot-dev') {
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) => {