1 const common = require("./common.js")
5 help: "Display info about furrybot",
6 func: msg => msg.reply("**furrybot** _by Elias Fleckenstein_\n\n"
7 + "Furrybot for Discord: <https://github.com/EliasFleckenstein03/furrybot-discord>\n"
8 + "Original Furrybot Dragonfire CSM: <https://github.com/EliasFleckenstein03/furrybot>\n"
9 + "Custom Google Images API: <https://www.npmjs.com/package/free-google-images>"
13 params: "[<command>]",
14 help: "Display help for a commands or show list of available commands",
15 func: (msg, [cmd], {commands}) => {
17 let def = commands[cmd]
20 msg.reply(`!${cmd}${def.params ? " " + def.params : ""}: ${def.help || "No description given"}`)
22 msg.reply(`Invalid command: ${cmd}`)
24 msg.reply("Available commands:\n\t" + Object.keys(commands).join("\n\t"))
29 help: "Accept a request",
30 func: (msg, _, {requests}) => {
31 const id = msg.author.id
32 const req = requests[id]
36 req.func(msg, req.origin)
38 msg.reply("Nothing to accept")
43 help: "Deny a request",
44 func: (msg, _, {requests}) => {
45 const id = msg.author.id
46 const req = requests[id]
50 msg.reply(`Denied request from <@!${req.origin}>`)
52 msg.reply("Nothing to deny")