Removed quote detection from normal arguments
This commit is contained in:
parent
0483e68016
commit
bc2826ccbb
2 changed files with 1 additions and 10 deletions
|
@ -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) {
|
||||
|
|
|
@ -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} `;
|
||||
|
|
Loading…
Reference in a new issue