twitch-commando
Version:
Twitch Bot Commando Client
30 lines (27 loc) • 771 B
JavaScript
const TwitchChatCommand = require('../src/commands/TwitchChatCommand');
module.exports = class SimpleCommand extends TwitchChatCommand
{
constructor(client)
{
super(client, {
name: 'simple',
aliases: [ 'simpleCommand' ],
group: 'misc',
description: 'This is a simple command, the bot will reply with "roger!"',
args: [
{
name: 'arg1',
defaultValue: 'defaultValueArg1'
},
{
name: 'arg2'
}
]
});
}
async run(msg, parameters)
{
this.client.logger.debug(parameters);
msg.reply('roger!');
}
}