Fixed bug with emote, removed admin section from help
This commit is contained in:
parent
6bb0620c79
commit
35cec45196
5 changed files with 105 additions and 207 deletions
|
@ -9,7 +9,7 @@ exports.run = async (message, args) => {
|
|||
for (const codePoint of args[0]) {
|
||||
codePoints.push(codePoint.codePointAt(0).toString(16));
|
||||
}
|
||||
return `https://twemoji.maxcdn.com/v/latest/72x72/${codePoints.join("-")}.png`;
|
||||
return `https://twemoji.maxcdn.com/v/latest/72x72/${codePoints.join("-").replace("-fe0f", "")}.png`;
|
||||
} else {
|
||||
return `${message.author.mention}, you need to provide a valid emoji to get an image!`;
|
||||
}
|
||||
|
|
|
@ -37,8 +37,7 @@ exports.run = async (message, args) => {
|
|||
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: [],
|
||||
admin: ["**These commands are only available to the bot owner.**\n"]
|
||||
soundboard: []
|
||||
};
|
||||
for (const command of commands) {
|
||||
const category = collections.info.get(command).category;
|
||||
|
@ -59,8 +58,6 @@ 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.admin.push(`**${command}**${params ? ` ${params}` : ""} - ${description}`);
|
||||
}
|
||||
}
|
||||
const pages = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue