mrmBot-Matrix/classes/command.js

35 lines
No EOL
854 B
JavaScript

class Command {
constructor(client, cluster, worker, ipc, message, args, content, specialArgs) {
this.client = client;
this.cluster = cluster;
this.worker = worker;
this.ipc = ipc;
this.message = message;
this.args = args;
this.content = content;
this.specialArgs = specialArgs;
this.reference = {
messageReference: {
channelID: this.message.channel.id,
messageID: this.message.id,
guildID: this.message.channel.guild ? this.message.channel.guild.id : undefined,
failIfNotExists: false
},
allowedMentions: {
repliedUser: false
}
};
}
async run() {
return "It works!";
}
static description = "No description found";
static aliases = [];
static arguments = [];
static flags = [];
static requires = [];
}
export default Command;