mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 14:44:58 +05:00
check for apikey
This commit is contained in:
parent
b6869fbba1
commit
b7fa913bd5
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ class Joke extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
async run (message, args, data) {
|
async run (message, args, data) {
|
||||||
// if (!this.client.config.apiKeys.blagueXYZ) return message.error("misc:COMMAND_DISABLED");
|
if (!this.client.config.apiKeys.blagueXYZ) return message.error("misc:COMMAND_DISABLED");
|
||||||
|
|
||||||
// const joke = await this.client.joker.randomJoke(data.guild.language.substr(0, 2));
|
// const joke = await this.client.joker.randomJoke(data.guild.language.substr(0, 2));
|
||||||
const joke = await this.client.joker.randomJoke("en");
|
const joke = await this.client.joker.randomJoke("en");
|
||||||
|
|
|
@ -67,7 +67,7 @@ class Help extends Command {
|
||||||
.setFooter(data.config.embed.footer);
|
.setFooter(data.config.embed.footer);
|
||||||
categories.sort().forEach((cat) => {
|
categories.sort().forEach((cat) => {
|
||||||
const tCommands = commands.filter((cmd) => cmd.help.category === cat);
|
const tCommands = commands.filter((cmd) => cmd.help.category === cat);
|
||||||
embed.addField(emojis.categories[cat.toLowerCase()]+" "+cat+" - ("+tCommands.size+")", tCommands.map((cmd) => "`"+cmd.help.name+"`").join(", "));
|
embed.addField(`${emojis.categories[cat.toLowerCase()]} ${cat} - (${tCommands.size})`, `${tCommands.map((cmd) => `${cmd.help.name}`).join(", ")}`);
|
||||||
});
|
});
|
||||||
if (message.guild) {
|
if (message.guild) {
|
||||||
if (data.guild.customCommands.length > 0) embed.addField(emojis.categories.custom+" "+message.guild.name+" | "+message.translate("general/help:CUSTOM_COMMANDS")+" - ("+data.guild.customCommands.length+")", data.guild.customCommands.map((cmd) => "`"+cmd.name+"`").join(", "));
|
if (data.guild.customCommands.length > 0) embed.addField(emojis.categories.custom+" "+message.guild.name+" | "+message.translate("general/help:CUSTOM_COMMANDS")+" - ("+data.guild.customCommands.length+")", data.guild.customCommands.map((cmd) => "`"+cmd.name+"`").join(", "));
|
||||||
|
|
Loading…
Reference in a new issue