mrmBot-Matrix/classes/command.js

32 lines
752 B
JavaScript
Raw Normal View History

class Command {
constructor(client, cluster, ipc, message, args, content) {
this.client = client;
this.cluster = cluster;
this.ipc = ipc;
this.message = message;
this.args = args;
this.content = content;
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 requires = [];
}
module.exports = Command;