forked from embee/woomy
Reformatted stuff, added data to imports
This commit is contained in:
parent
95d84cfaef
commit
b2531d49b0
10 changed files with 184 additions and 60 deletions
|
@ -15,7 +15,7 @@ exports.help = {
|
|||
usage: 'eval [code]'
|
||||
}
|
||||
|
||||
exports.run = async (client, message, args, level, settings) => {
|
||||
exports.run = async (client, message, args, level, data) => {
|
||||
const hastebin = require('hastebin-gen')
|
||||
const code = args.join(' ')
|
||||
try {
|
||||
|
|
21
commands/help.js
Normal file
21
commands/help.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: false,
|
||||
aliases: ['commands', 'cmds', 'h'],
|
||||
permLevel: 'User',
|
||||
requiredPerms: ['EMBED_LINKS'],
|
||||
cooldown: 2000
|
||||
}
|
||||
|
||||
exports.help = {
|
||||
name: 'help',
|
||||
category: 'General',
|
||||
description: 'Returns your permission level.',
|
||||
usage: 'help <command>'
|
||||
}
|
||||
|
||||
const Discord = require('discord.js')
|
||||
exports.run = (client, message, args, level, data) => {
|
||||
const embed = new Discord.MessageEmbed()
|
||||
embed.setColor(client.embedColour(message.guild))
|
||||
}
|
|
@ -14,7 +14,7 @@ exports.help = {
|
|||
usage: 'level'
|
||||
}
|
||||
|
||||
exports.run = async (client, message, args, level, settings) => {
|
||||
exports.run = async (client, message, args, level, data) => {
|
||||
try {
|
||||
const friendly = client.config.permLevels.find(l => l.level === level).name
|
||||
message.reply(`your permission level is ${level} (${friendly}).`)
|
||||
|
|
|
@ -14,7 +14,7 @@ exports.help = {
|
|||
usage: 'ping'
|
||||
}
|
||||
|
||||
exports.run = async (client, message, args, level, settings) => {
|
||||
exports.run = async (client, message, args, level, data) => {
|
||||
const msg = await message.channel.send('Pinging...')
|
||||
msg.edit(
|
||||
`Pong! \`${msg.createdTimestamp - message.createdTimestamp}ms\` (💗 \`${Math.round(client.ws.ping)}ms\`)`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue