Added empty next and previous command

This commit is contained in:
Christer Warén 2021-09-05 02:12:43 +03:00
parent d5fefcdbbc
commit 3609e6af10
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,24 @@
module.exports = {
name: 'next',
usage: '',
description: 'Next Station',
permission: 'none',
category: 'info',
async execute(interaction, client, Discord, 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
});
}
}
}

View File

@ -0,0 +1,24 @@
module.exports = {
name: 'previous',
usage: '',
description: 'Previous Station',
permission: 'none',
category: 'info',
async execute(interaction, client, Discord, 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
});
}
}
}