New command syntax
- creating commands requires a command template that is stored in the commands folder in a json file - command templates manage permissions, arguments, responses and the command name - added config file -> needs to be created, template coming soonpull/12/head
parent
98b809ba66
commit
2b6ea2123f
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"utils": {
|
||||||
|
"help": {
|
||||||
|
"name": "help",
|
||||||
|
"permission": "all",
|
||||||
|
"description": "Shows this help command"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,128 @@
|
|||||||
|
{
|
||||||
|
"utils": {
|
||||||
|
"roles": {
|
||||||
|
"name": "roles",
|
||||||
|
"permission": "all",
|
||||||
|
"description": "Shows the roles used for commands on the server."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"music": {
|
||||||
|
"play": {
|
||||||
|
"name": "play",
|
||||||
|
"permission": "all",
|
||||||
|
"args": [
|
||||||
|
"url"
|
||||||
|
],
|
||||||
|
"description": "Adds the url to the YouTube video/playlist into the queue.",
|
||||||
|
"response": {
|
||||||
|
"success": "Added Song/Playlist to the queue.",
|
||||||
|
"failure": "Failed adding Song/Playlist to the queue.",
|
||||||
|
"url_invalid": "This is not a valid url!",
|
||||||
|
"no_url": "I need an url to a video to play"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"playnext": {
|
||||||
|
"name": "playnext",
|
||||||
|
"permission": "all",
|
||||||
|
"args": [
|
||||||
|
"url"
|
||||||
|
],
|
||||||
|
"description": "Adds the url to the YouTube video as next song to the queue.",
|
||||||
|
"response": {
|
||||||
|
"success": "Added Song as next Song to the queue.",
|
||||||
|
"failure": "Failed adding Song as next Song to the queue.",
|
||||||
|
"url_invalid": "This is not a valid url!",
|
||||||
|
"no_url": "I need an url to a video to play"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"join": {
|
||||||
|
"name": "join",
|
||||||
|
"permission": "all",
|
||||||
|
"description": "Joins the VC you are in.",
|
||||||
|
"response": {
|
||||||
|
"not_connected": "You are not connected to a Voice Channel."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"stop": {
|
||||||
|
"name": "stop",
|
||||||
|
"permission": "dj",
|
||||||
|
"description": "Stops playing music and leaves.",
|
||||||
|
"response": {
|
||||||
|
"success": "Stopping now..."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"pause": {
|
||||||
|
"name": "pause",
|
||||||
|
"permission": "all",
|
||||||
|
"description": "Pauses playing.",
|
||||||
|
"response": {
|
||||||
|
"success": "Pausing playback."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"resume": {
|
||||||
|
"name": "resume",
|
||||||
|
"permission": "all",
|
||||||
|
"description": "Resumes playing.",
|
||||||
|
"response": {
|
||||||
|
"success": "Resuming playback."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"skip": {
|
||||||
|
"name": "skip",
|
||||||
|
"permission": "dj",
|
||||||
|
"description": "Skips the current song.",
|
||||||
|
"response": {
|
||||||
|
"success": "Skipping to the next song."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"clear": {
|
||||||
|
"name": "clear",
|
||||||
|
"permission": "dj",
|
||||||
|
"description": "Clears the queue.",
|
||||||
|
"response": {
|
||||||
|
"success": "The Queue has been cleared."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"playlist": {
|
||||||
|
"name": "queue",
|
||||||
|
"permission": "all",
|
||||||
|
"description": "Shows the next ten songs."
|
||||||
|
},
|
||||||
|
"current": {
|
||||||
|
"name": "np",
|
||||||
|
"permission": "all",
|
||||||
|
"description": "Shows the currently playing song."
|
||||||
|
},
|
||||||
|
"shuffle": {
|
||||||
|
"name": "shuffle",
|
||||||
|
"permission": "all",
|
||||||
|
"description": "Shuffles the playlist.",
|
||||||
|
"response": {
|
||||||
|
"success": "The Queue has been shuffled."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"repeat": {
|
||||||
|
"name": "repeat",
|
||||||
|
"permission": "all",
|
||||||
|
"description": "Toggle listening on repeat.",
|
||||||
|
"response": {
|
||||||
|
"repeat_true": "Listening on repeat now!",
|
||||||
|
"repeat_false": "Not listening on repeat anymore."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"save": {
|
||||||
|
"name": "save",
|
||||||
|
"permission": "dj",
|
||||||
|
"args": [
|
||||||
|
"url",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"description": "Saves the YouTube song/playlist with a specific name"
|
||||||
|
},
|
||||||
|
"saved": {
|
||||||
|
"name": "saved",
|
||||||
|
"permission": "all",
|
||||||
|
"description": "Prints out all saved playlists."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue