Merge branch 'f0ckdev' into 'master'

irgendwas mit Argumenten

See merge request !53
This commit is contained in:
Flummi 2016-11-25 12:37:07 +00:00
commit e0cd6feae2

View File

@ -15,8 +15,8 @@ module.exports = (lib) => {
level: 0, level: 0,
active: 0, active: 0,
func: (e) => { func: (e) => {
if(e.channel.getName() === lib.cfg.main.debugchannel || e.message.match(/^\!f0ck (.*?)/i)) { if(e.channel.getName() === lib.cfg.main.debugchannel || e.message.match(/(!|-)f0ck/i)) {
if(!e.message.match(/\!ignore/)) { if(!e.message.match(/(!|-)ignore/)) {
var tmp = e.message.match(/https?:\/\/[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?/gi); // get links var tmp = e.message.match(/https?:\/\/[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?/gi); // get links
tmp.forEach((entry,i,a) => { tmp.forEach((entry,i,a) => {
if(!entry.match(/f0ck\.me/i)) { if(!entry.match(/f0ck\.me/i)) {