From 4a455906870e49452ab8d88b793aa1e354499e42 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 23 Feb 2018 20:22:56 -0500 Subject: PLease work --- commands/help.js | 23 +++++++++++++++++++++++ commands/ping.js | 14 ++++++++++++++ commands/suggest.js | 24 ++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 commands/help.js create mode 100644 commands/ping.js create mode 100644 commands/suggest.js diff --git a/commands/help.js b/commands/help.js new file mode 100644 index 0000000..0eb89bf --- /dev/null +++ b/commands/help.js @@ -0,0 +1,23 @@ +exports.run = (bot, msg, args) => { + const { RichEmbed } = require('discord.js'); + msg.channel.send( + new RichEmbed() + .setColor (0x00ae86) + .setTitle('PokeBot Command List') + .setDescription('These are the commands you can use. My prefix is `p:`') + .addField('Core', 'help\nping', true) + .addField('Utility', 'suggest', true) + .setFooter('PokeBot Beta') + ); +}; + +exports.conf = { + aliases: ['h'], + guildOnly: true, +}; + +exports.help = { + name: 'help', + description: 'Help.', + usage: 'help (command)', +}; diff --git a/commands/ping.js b/commands/ping.js new file mode 100644 index 0000000..8ba3ae9 --- /dev/null +++ b/commands/ping.js @@ -0,0 +1,14 @@ +exports.run = (bot, msg, args) => { + msg.channel.send(':ping_pong: Pong! ' + Math.floor(bot.ping) + 'ms.'); +}; + +exports.conf = { + aliases: [], + guildOnly: true, +}; + +exports.help = { + name: 'ping', + description: 'ping.', + usage: 'ping', +}; diff --git a/commands/suggest.js b/commands/suggest.js new file mode 100644 index 0000000..0f1898e --- /dev/null +++ b/commands/suggest.js @@ -0,0 +1,24 @@ +exports.run = (bot, msg, args) => { + const { RichEmbed } = require('discord.js'); + bot.channels.get('416726932927938570').send( + new RichEmbed() + .setColor (0x00ae86) + .setTitle('Suggestion') + .setDescription('This is a suggestion from a community member for something relating to the server. Please rate it based on your opinion, and a staff member will decide what to do with the suggestion.') + .addField('Suggestion Contents', args.join(' ')) + ).then(message => { + message.react('\u2705'); + message.react('\u274E'); + }); +}; + +exports.conf = { + aliases: [], + guildOnly: true, +}; + +exports.help = { + name: 'suggset', + description: 'Suggest a feature.', + usage: 'suggest <...Suggestion>', +}; -- cgit v1.2.3