Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Commit

Permalink
6.1
Browse files Browse the repository at this point in the history
removed translator and wouldyourather
  • Loading branch information
mirko93s authored Dec 9, 2020
1 parent f210093 commit a2c22a9
Showing 1 changed file with 18 additions and 33 deletions.
51 changes: 18 additions & 33 deletions commands/Info/help.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { MessageEmbed } = require("discord.js");
const { stripIndents } = require("common-tags");

module.exports = {
name: "help",
Expand All @@ -17,37 +16,23 @@ module.exports = {
}
}

function getAll(client, message) { //old help main page below-----------
// const embed = new MessageEmbed()
// .setColor("RANDOM")

// const commands = (category) => {
// return client.commands
// .filter(cmd => cmd.category === category)
// .map(cmd => `- \`${cmd.name}\``)
// .join("\n");
// }

// const info = client.categories
// .map(cat => stripIndents`**${cat[0].toUpperCase() + cat.slice(1)}** \n${commands(cat)}`)
// .reduce((string, category) => string + "\n" + category);

const helpembed = new MessageEmbed()
.setTitle(":question: Chill Bot HELP :question:")
.setDescription("Type .help <command | alias> for more info.")
.setColor(0x00AE86)
.setThumbnail(client.user.displayAvatarURL())
/* Admin */.addField(":no_entry_sign: Admin", "addchannel, broadcast, giveaway, poll, setup")
/* Bot */.addField(":robot: Bot", "botinfo, bugreport, invite, project, website")
/* Fun */.addField(":game_die: Fun", "8ball, achievement, flipcoin, respawn, rockpaperscissors, ship, slotmachine, wouldyourather")
/* Info */.addField(":information_source: Info", "avatar, help, serveremojis, serverinfo, whois")
/* Moderation */.addField(":hammer: Moderation", "ban, kick, mute, purge, report, say, ticket, unmute")
/* Music */.addField(":musical_note: Music", "play, skip, playskip, pause, resume, stop, nowplaying, queue, summon, volume")
/* Other */.addField(":bulb: Other", "calc, instagram, mcstat, nick, percentage, ping, remindme, today, translator, urban, weather")
/* Owner */.addField(":gear: Owner", "botactivity")
/* Roles */.addField(":level_slider: Roles", "addrole, removerole, roleinfo, rolelist")
/* Settings */.addField(":floppy_disk: Settings", "resetconfig, setconfig, showconfig")
/* Xp */.addField(":trophy: Xp", "leaderboard, level, xp")
function getAll(client, message) {
const helpembed = new MessageEmbed()
.setTitle(":question: Chill Bot HELP :question:")
.setDescription("Type .help <command | alias> for more info.")
.setColor(0x00AE86)
.setThumbnail(client.user.displayAvatarURL())
/* Admin */.addField(":no_entry_sign: Admin", "addchannel, broadcast, giveaway, poll, setup")
/* Bot */.addField(":robot: Bot", "botinfo, bugreport, invite, project, website")
/* Fun */.addField(":game_die: Fun", "8ball, achievement, flipcoin, respawn, rockpaperscissors, ship, slotmachine")
/* Info */.addField(":information_source: Info", "avatar, help, serveremojis, serverinfo, whois")
/* Moderation */.addField(":hammer: Moderation", "ban, kick, mute, purge, report, say, ticket, unmute")
/* Music */.addField(":musical_note: Music", "play, skip, playskip, pause, resume, stop, nowplaying, queue, summon, volume")
/* Other */.addField(":bulb: Other", "calc, instagram, mcstat, nick, percentage, ping, remindme, today, urban, weather")
/* Owner */.addField(":gear: Owner", "botactivity")
/* Roles */.addField(":level_slider: Roles", "addrole, removerole, roleinfo, rolelist")
/* Settings */.addField(":floppy_disk: Settings", "resetconfig, setconfig, showconfig")
/* Xp */.addField(":trophy: Xp", "leaderboard, level, xp")

return message.channel.send(helpembed);
}
Expand All @@ -74,4 +59,4 @@ function getCMD(client, message, input) {
if (cmd.permission) info += `\n\n**Permission**: \`\`\`${cmd.permission}\`\`\``;

return message.channel.send(embed.setColor("GREEN").setTitle(`**${cmd.name}**`).setDescription(info));
}
}

0 comments on commit a2c22a9

Please sign in to comment.