mrmBot-Matrix/classes/command.js

35 lines
856 B
JavaScript
Raw Normal View History

class Command {
2021-07-05 04:15:27 +00:00
constructor(client, cluster, worker, ipc, message, args, content, specialArgs) {
this.client = client;
this.cluster = cluster;
2021-07-05 04:15:27 +00:00
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 = [];
}
module.exports = Command;