mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-13 02:20:18 +00:00
12 lines
424 B
JavaScript
12 lines
424 B
JavaScript
module.exports = async function (client, msg, pos, command) {
|
|
const seek = parseInt(pos);
|
|
const queue = client.queue.get(msg.guild.id);
|
|
if (command.name === "seek") {
|
|
queue.time = seek * 1000;
|
|
} else {
|
|
queue.time = queue.connection.dispatcher.streamTime + queue.time;
|
|
}
|
|
queue.connection.dispatcher.end();
|
|
queue.endReason = "seek";
|
|
client.funcs.play(msg.guild, queue.songs[0], client, seek, false);
|
|
}; |