mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 20:23:16 +00:00
Added empty next and previous command
This commit is contained in:
parent
d5fefcdbbc
commit
3609e6af10
24
src/client/commands/next.js
Normal file
24
src/client/commands/next.js
Normal 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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
24
src/client/commands/previous.js
Normal file
24
src/client/commands/previous.js
Normal 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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user