mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 02:20:18 +00:00
Updated nowplaying command
This commit is contained in:
parent
2d41c7a76b
commit
38a8571ddc
@ -6,19 +6,9 @@ module.exports = {
|
||||
permission: 'none',
|
||||
category: 'radio',
|
||||
async execute(interaction, client) {
|
||||
if (client.funcs.check(client, interaction, command)) {
|
||||
let message = {};
|
||||
const radio = client.radio.get(interaction.guild.id);
|
||||
if (!radio) return interaction.reply({
|
||||
content: 'There is nothing playing.',
|
||||
ephemeral: true
|
||||
});
|
||||
if(!client.stations) {
|
||||
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
|
||||
return interaction.reply({
|
||||
content: client.messageEmojis["error"] + message.errorToGetPlaylist,
|
||||
ephemeral: true
|
||||
});
|
||||
}
|
||||
|
||||
let date = new Date();
|
||||
radio.currentTime = date.getTime();
|
||||
@ -42,4 +32,5 @@ module.exports = {
|
||||
ephemeral: true
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user