mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 02:00:20 +00:00
Update handleVideo.ts
This commit is contained in:
parent
7ad27e51cc
commit
7c7b0f0f26
@ -5,7 +5,6 @@ module.exports = async function (
|
||||
client,
|
||||
playlist = false
|
||||
) {
|
||||
const queueConfig = require("../config/queueConfig.ts");
|
||||
const Discord = require("discord.js");
|
||||
const song = {
|
||||
title: Discord.Util.escapeMarkdown(video.title),
|
||||
@ -23,7 +22,24 @@ module.exports = async function (
|
||||
return msg.channel.send(message);
|
||||
}
|
||||
|
||||
const construct = { ...queueConfig };
|
||||
const construct = {
|
||||
textChannel: null,
|
||||
voiceChannel: null,
|
||||
connection: null,
|
||||
songs: [],
|
||||
volume: null,
|
||||
bass: null,
|
||||
nigthCore: false,
|
||||
playing: false,
|
||||
paused: false,
|
||||
looping: false,
|
||||
songLooping: false,
|
||||
votes: 0,
|
||||
voters: [],
|
||||
votesNeeded: null,
|
||||
time: 0,
|
||||
endReason: null,
|
||||
};
|
||||
|
||||
construct.textChannel = msg.channel;
|
||||
construct.voiceChannel = voiceChannel;
|
||||
|
Loading…
Reference in New Issue
Block a user