Added initial music commands and category, moved lavalink node config to separate file
This commit is contained in:
parent
111b177968
commit
59c2c230fb
23 changed files with 365 additions and 53 deletions
|
@ -11,7 +11,7 @@ exports.run = async (message, args) => {
|
|||
};
|
||||
|
||||
exports.aliases = ["add"];
|
||||
exports.category = 7;
|
||||
exports.category = 8;
|
||||
exports.help = "Adds a tweet to the database";
|
||||
exports.requires = "twitter";
|
||||
exports.params = "[category] [message]";
|
|
@ -22,6 +22,6 @@ exports.run = async (message, args) => {
|
|||
};
|
||||
|
||||
exports.aliases = ["run"];
|
||||
exports.category = 7;
|
||||
exports.category = 8;
|
||||
exports.help = "Executes JavaScript code";
|
||||
exports.params = "[code]";
|
|
@ -25,6 +25,6 @@ exports.run = async (message, args) => {
|
|||
};
|
||||
|
||||
exports.aliases = ["runcmd"];
|
||||
exports.category = 7;
|
||||
exports.category = 8;
|
||||
exports.help = "Executes a terminal command";
|
||||
exports.params = "[command]";
|
|
@ -37,8 +37,9 @@ exports.run = async (message, args) => {
|
|||
moderation: [],
|
||||
tags: ["**Every command in this category is a subcommand of the tag command.**\n"],
|
||||
fun: [],
|
||||
images: ["**These commands support the PNG, JPEG, WEBP, and GIF formats. (GIF support is experimental)**\n"],
|
||||
soundboard: []
|
||||
images: ["**These commands support the PNG, JPEG, WEBP (static), and GIF (animated or static) formats.**\n"],
|
||||
soundboard: [],
|
||||
music: []
|
||||
};
|
||||
for (const [command] of commands) {
|
||||
const category = collections.info.get(command).category;
|
||||
|
@ -59,6 +60,8 @@ exports.run = async (message, args) => {
|
|||
categories.images.push(`**${command}**${params ? ` ${params}` : ""} - ${description}`);
|
||||
} else if (category === 6) {
|
||||
categories.soundboard.push(`**${command}**${params ? ` ${params}` : ""} - ${description}`);
|
||||
} else if (category === 7) {
|
||||
categories.music.push(`**${command}**${params ? ` ${params}` : ""} - ${description}`);
|
||||
}
|
||||
}
|
||||
const pages = [];
|
||||
|
|
10
commands/nowplaying.js
Normal file
10
commands/nowplaying.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
soundPlayer.playing(message);
|
||||
};
|
||||
|
||||
exports.aliases = ["playing", "np"];
|
||||
exports.category = 7;
|
||||
exports.help = "Shows the currently playing song";
|
||||
exports.requires = "sound";
|
10
commands/pause.js
Normal file
10
commands/pause.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
soundPlayer.pause(message);
|
||||
};
|
||||
|
||||
exports.aliases = ["resume"];
|
||||
exports.category = 7;
|
||||
exports.help = "Pauses/resumes the current song";
|
||||
exports.requires = "sound";
|
|
@ -1,10 +1,12 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message, args) => {
|
||||
if (message.author.id !== process.env.OWNER) return `${message.author.mention}, this command is for testing and is restricted to owners.`;
|
||||
return soundPlayer.play(encodeURIComponent(args.join(" ")), message);
|
||||
if (!args[0]) return `${message.author.mention}, you need to provide what you want to play!`;
|
||||
soundPlayer.play(encodeURIComponent(args.join(" ").trim()), message, true);
|
||||
};
|
||||
|
||||
exports.aliases = ["p"];
|
||||
exports.category = 7;
|
||||
exports.help = "Plays an audio file";
|
||||
exports.requires = "sound";
|
||||
exports.help = "Plays a song or adds it to the queue";
|
||||
exports.requires = "sound";
|
||||
exports.params = "[url]";
|
10
commands/queue.js
Normal file
10
commands/queue.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
soundPlayer.queue(message);
|
||||
};
|
||||
|
||||
exports.aliases = ["q"];
|
||||
exports.category = 7;
|
||||
exports.help = "Shows the current queue";
|
||||
exports.requires = "sound";
|
|
@ -12,6 +12,6 @@ exports.run = async (message, args) => {
|
|||
}
|
||||
};
|
||||
|
||||
exports.category = 7;
|
||||
exports.category = 8;
|
||||
exports.help = "Reloads a command";
|
||||
exports.params = "[command]";
|
|
@ -10,6 +10,6 @@ exports.run = async (message) => {
|
|||
process.exit(1);
|
||||
};
|
||||
|
||||
exports.aliases = ["reboot", "stop"];
|
||||
exports.category = 7;
|
||||
exports.aliases = ["reboot"];
|
||||
exports.category = 8;
|
||||
exports.help = "Restarts me";
|
9
commands/skip.js
Normal file
9
commands/skip.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
soundPlayer.skip(message);
|
||||
};
|
||||
|
||||
exports.category = 7;
|
||||
exports.help = "Skips the current song";
|
||||
exports.requires = "sound";
|
|
@ -4,6 +4,6 @@ exports.run = async (message, args) => {
|
|||
return args.join(" ").repeat(500).substring(0, 500);
|
||||
};
|
||||
|
||||
exports.category = 8;
|
||||
exports.category = 9;
|
||||
exports.help = "placeholder";
|
||||
exports.params = "[text]";
|
10
commands/stop.js
Normal file
10
commands/stop.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
soundPlayer.stop(message);
|
||||
};
|
||||
|
||||
exports.aliases = ["disconnect"];
|
||||
exports.category = 7;
|
||||
exports.help = "Stops the music";
|
||||
exports.requires = "sound";
|
|
@ -9,7 +9,7 @@ exports.run = async (message, args) => {
|
|||
// with status code ${info.resp.statusCode} ${info.resp.statusMessage}.
|
||||
};
|
||||
|
||||
exports.category = 7;
|
||||
exports.category = 8;
|
||||
exports.help = "Tweets a message";
|
||||
exports.requires = "twitter";
|
||||
exports.params = "[message]";
|
Loading…
Add table
Add a link
Reference in a new issue