Added sqlite database support, connect new argument parser to message handler

This commit is contained in:
Essem 2021-07-01 23:42:12 -05:00
parent 714e4a451c
commit ecc6d98aec
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
11 changed files with 330 additions and 39 deletions

View file

@ -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,

View file

@ -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);
}