Chore update 3.9

This commit is contained in:
MatteZ02 committed 2020-07-12 19:08:53 +03:00
1 parent 086c51f367
commit 163b6ce836
27 files changed
+54 -71

No files matched your search

+2 -2
View File
@@ -5,10 +5,10 @@ module.exports = {
description: "See the currently playing song position and length.",
onlyDev: false,
permission: "none",
category: "music",
category: "info",
async execute(msg, args, client, Discord, command) {
const queue = client.queue.get(msg.guild.id);
if (!queue) return msg.channel.send(client.messages.noServerQueue);
if (!queue || !queue.songs[0] || !queue.connection || !queue.connection.dispatcher) return msg.channel.send(client.messages.noServerQueue);
let songTime = (queue.songs[0].info.lengthSeconds * 1000).toFixed(0);
let completed = (
queue.connection.dispatcher.streamTime + queue.time