32 lines
1.2 KiB
JavaScript
32 lines
1.2 KiB
JavaScript
const Embed = require("../functions/embed")
|
|
|
|
module.exports = {
|
|
config: {
|
|
name: "help",
|
|
usage: true,
|
|
cooldown: 5000,
|
|
available: true,
|
|
permissions: [],
|
|
roles: [],
|
|
dm: false,
|
|
aliases: ['h']
|
|
},
|
|
run: async (client, message, args, db) => {
|
|
const embed = {
|
|
description: `**!avatar**: \`!avatar @USER\`\n**Aliases**: \`!av\`\n
|
|
**!command**: \`!command add NAME CONTENT\`\n**Aliases**: \`!cmd\`\n
|
|
**!gif**: \`!gif TERM\`\n**Aliases**: \`!gify, !tenor, !giphy\`\n
|
|
**!polls**: \`!polls TIME | How are you? | Good | Bad\`\n**Aliases**: \`!poll\`\n
|
|
**!urban**: \`!urban TERM\`\n**Aliases**: \`!ub\`\n\n
|
|
**Tip**: You can run each command without an argument and it will return how to use it.`, colour: "#00FFFF", title: "Commands Help"
|
|
}
|
|
|
|
|
|
await message.channel.sendMessage({ content: "", embeds: [embed] }).catch(err => {
|
|
console.log(`${Date(Date.now().toString()).slice(0, 25)}`);
|
|
console.log("User: " + message.author.username + ` [${message.authorId}] ` + " | Command: help | Args: " + (args?.join(" ") || "NONE"))
|
|
console.log(err.message);
|
|
return;
|
|
});
|
|
},
|
|
}; |