muh
This commit is contained in:
parent
9bfd49d04f
commit
3cb18c246e
|
@ -7,12 +7,12 @@ module.exports = (bot, trigger, lib) => {
|
||||||
func: (e) => {
|
func: (e) => {
|
||||||
var modes = e.message.split(' ');
|
var modes = e.message.split(' ');
|
||||||
var user = modes[modes.length - 1];
|
var user = modes[modes.length - 1];
|
||||||
|
if(user.toLower() != 'f0ck') {
|
||||||
if(user.match(/(\+|-)/))
|
if(user.match(/(\+|-)/))
|
||||||
user = e.user.getNick();
|
user = e.user.getNick();
|
||||||
else
|
else
|
||||||
modes.pop();
|
modes.pop();
|
||||||
modes.shift();
|
modes.shift();
|
||||||
|
|
||||||
if(modes.length > 0) {
|
if(modes.length > 0) {
|
||||||
modes.forEach((entry,i,a) => {
|
modes.forEach((entry,i,a) => {
|
||||||
bot.mode(e.channel, entry+' '+user, e.network);
|
bot.mode(e.channel, entry+' '+user, e.network);
|
||||||
|
@ -20,6 +20,9 @@ module.exports = (bot, trigger, lib) => {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
e.reply('no modes given');
|
e.reply('no modes given');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
e.reply('f0ck you.');
|
||||||
},
|
},
|
||||||
desc: 'change Usermodes'
|
desc: 'change Usermodes'
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user