Removed quote detection from normal arguments

This commit is contained in:
Essem 2021-07-08 21:03:19 -05:00
parent 0483e68016
commit bc2826ccbb
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
2 changed files with 1 additions and 10 deletions

View file

@ -3,6 +3,7 @@ const AwaitRejoin = require("../utils/awaitrejoin.js");
const { random } = require("../utils/misc.js");
module.exports = async (client, cluster, worker, ipc, member, oldChannel) => {
if (!oldChannel) return;
const connection = soundPlayer.players.get(oldChannel.guild.id);
if (connection && connection.type === "music" && oldChannel.id === connection.voiceChannel.id) {
if (oldChannel.voiceMembers.filter((i) => i.id !== client.user.id).length === 0) {

View file

@ -39,16 +39,6 @@ module.exports = (input) => {
} else {
args[curr] += `${a} `;
}
} else if (a.startsWith("\"")) {
if (a.endsWith("\"")) {
args.push(a.slice(1).slice(0, -1));
} else {
concated += `${a.slice(1)} `;
}
} else if (a.endsWith("\"")) {
concated += a.slice(0, -1);
args._.push(concated);
concated = "";
} else {
if (concated !== "") {
concated += `${a} `;