mrnodebot
Version:
Your Friendly NodeJS IRC Bot
24 lines (20 loc) • 595 B
JavaScript
const slicc = require('../../lib/sliccText');
const scriptInfo = {
name: 'slicc',
desc: 'Slicc text back to the IRC user, a simple test script',
createdBy: 'IronY',
};
module.exports = (app) => {
// Echo Test command
app.Commands.set('slicc', {
desc: '[text] Exactly what it sounds like',
access: app.Config.accessLevels.admin,
call: (to, from, text, message) => {
const newText = slicc(text);
console.dir(newText);
app.say(to, newText);
}
});
// Return the script info
return scriptInfo;
};