make shorter botlist command
This commit is contained in:
parent
e1d2d00791
commit
0916912adf
29
index.js
29
index.js
|
@ -10,7 +10,7 @@ bot.connect({
|
||||||
tls: true
|
tls: true
|
||||||
});
|
});
|
||||||
|
|
||||||
const prefix = "-"
|
const prefix = "="
|
||||||
|
|
||||||
bot.commands = new Map();
|
bot.commands = new Map();
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ bot.on('message', event => {
|
||||||
const args = event.message.slice(prefix.length).trim().split(/ +/);
|
const args = event.message.slice(prefix.length).trim().split(/ +/);
|
||||||
if(event.message == '!botlist') {
|
if(event.message == '!botlist') {
|
||||||
|
|
||||||
bot.commands.get('help').execute(event, args, bot);
|
bot.say(event.target, `Hello, I'm Cactus, my maintainer is forero and my prefix is '${prefix}'. For more information type: ${prefix}help, join #cactus for help`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!event.message.startsWith(prefix)) return;
|
if (!event.message.startsWith(prefix)) return;
|
||||||
|
@ -44,30 +44,9 @@ bot.on('message', event => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bot.on('registered', event => {
|
bot.on('registered', event => {
|
||||||
console.log(event)
|
console.log(event)
|
||||||
bot.join('#bots')
|
bot.join('#bots')
|
||||||
bot.join('#cactus')
|
bot.join('#cactus')
|
||||||
|
bot.join('#cactus-spam')
|
||||||
bot.say('NickServ', 'identify 1021513305')
|
})
|
||||||
})
|
|
||||||
|
|
Loading…
Reference in New Issue