owobot/util/Command.js
7cc5c4f330d47060 de78065438 Initial commit
2024-07-06 11:02:11 -04:00

22 lines
533 B
JavaScript

//HOW TO WRITE CLASS JS
const parse = require("../util/chatparse.js")
class Command{
constructor (uuid,user,nick,cmd,prefix,bot,verify){
this.send = ()=>{};
this.reply = text => bot.tellraw(uuid,text);
this.uuid = uuid;
this.username = user;
this.nickname = nick;
this.command = cmd;
this.prefix = prefix;
this.bot = bot;
this.type = 'minecraft';
this.index = bot.id;
this.args = cmd.split(' ').slice(1);
this.verify = verify;
this.host = bot.host;
this.port = bot.port;
}
}
module.exports = Command;