mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 03:33:17 +00:00
Update handleVideo.ts
This commit is contained in:
parent
7ad27e51cc
commit
7c7b0f0f26
@ -5,7 +5,6 @@ module.exports = async function (
|
|||||||
client,
|
client,
|
||||||
playlist = false
|
playlist = false
|
||||||
) {
|
) {
|
||||||
const queueConfig = require("../config/queueConfig.ts");
|
|
||||||
const Discord = require("discord.js");
|
const Discord = require("discord.js");
|
||||||
const song = {
|
const song = {
|
||||||
title: Discord.Util.escapeMarkdown(video.title),
|
title: Discord.Util.escapeMarkdown(video.title),
|
||||||
@ -23,7 +22,24 @@ module.exports = async function (
|
|||||||
return msg.channel.send(message);
|
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.textChannel = msg.channel;
|
||||||
construct.voiceChannel = voiceChannel;
|
construct.voiceChannel = voiceChannel;
|
||||||
|
Loading…
Reference in New Issue
Block a user