mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-23 18:21:55 +01:00
add spawn command
This commit is contained in:
parent
0b76f59077
commit
5eda09d559
@ -181,6 +181,13 @@ function handleChannelMessage (message) {
|
||||
const errorMessage = getDiscordEmbedError(error);
|
||||
message.channel.send(errorMessage);
|
||||
}
|
||||
} else if (message.content.startsWith(CONFIG["discord-prefix"] + "spawn")) {
|
||||
try {
|
||||
playbackmanager.spawnPlayMessage(message)
|
||||
} catch (error) {
|
||||
const errorMessage = getDiscordEmbedError(error);
|
||||
message.channel.send(errorMessage);
|
||||
}
|
||||
} else if (message.content.startsWith(CONFIG["discord-prefix"] + "help")) {
|
||||
/* eslint-disable quotes */
|
||||
const reply = new Discord.MessageEmbed()
|
||||
@ -204,6 +211,9 @@ function handleChannelMessage (message) {
|
||||
}, {
|
||||
name: `${CONFIG["discord-prefix"]}skip`,
|
||||
value: "Skip this Song"
|
||||
}, {
|
||||
name: `${CONFIG["discord-prefix"]}spawn`,
|
||||
value: "Spawns an Interactive Play Controller"
|
||||
}, {
|
||||
name: `${CONFIG["discord-prefix"]}help`,
|
||||
value: "Display this help message"
|
||||
|
Loading…
Reference in New Issue
Block a user