Added sqlite database support, connect new argument parser to message handler
This commit is contained in:
parent
714e4a451c
commit
ecc6d98aec
11 changed files with 330 additions and 39 deletions
|
@ -1,11 +1,12 @@
|
|||
class Command {
|
||||
constructor(client, cluster, ipc, message, args, content) {
|
||||
constructor(client, cluster, ipc, message, args, content, specialArgs) {
|
||||
this.client = client;
|
||||
this.cluster = cluster;
|
||||
this.ipc = ipc;
|
||||
this.message = message;
|
||||
this.args = args;
|
||||
this.content = content;
|
||||
this.specialArgs = specialArgs;
|
||||
this.reference = {
|
||||
messageReference: {
|
||||
channelID: this.message.channel.id,
|
||||
|
|
|
@ -2,8 +2,8 @@ const Command = require("./command.js");
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
class MusicCommand extends Command {
|
||||
constructor(client, cluster, ipc, message, args, content) {
|
||||
super(client, cluster, ipc, message, args, content);
|
||||
constructor(client, cluster, ipc, message, args, content, specialArgs) {
|
||||
super(client, cluster, ipc, message, args, content, specialArgs);
|
||||
this.connection = soundPlayer.players.get(message.channel.guild.id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue