PLease work

This commit is contained in:
Unknown 2018-02-23 20:22:56 -05:00
parent 772caab56e
commit 4a45590687
3 changed files with 61 additions and 0 deletions

23
commands/help.js Normal file
View file

@ -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)',
};

14
commands/ping.js Normal file
View file

@ -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',
};

24
commands/suggest.js Normal file
View file

@ -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>',
};