2020-04-01 08:33:02 +00:00
|
|
|
exports.conf = {
|
|
|
|
enabled: true,
|
|
|
|
guildOnly: false,
|
|
|
|
aliases: ['plevel', 'permlevel'],
|
2020-04-04 09:16:05 +00:00
|
|
|
permLevel: 'User',
|
2020-04-01 08:33:02 +00:00
|
|
|
requiredPerms: [],
|
|
|
|
cooldown: 2000
|
|
|
|
}
|
|
|
|
|
|
|
|
exports.help = {
|
|
|
|
name: 'level',
|
2020-04-11 09:30:51 +00:00
|
|
|
category: 'Bot',
|
2020-04-01 08:33:02 +00:00
|
|
|
description: 'Returns your permission level.',
|
2020-04-06 09:36:32 +00:00
|
|
|
usage: 'level',
|
2020-04-06 16:35:06 +00:00
|
|
|
params: ''
|
2020-04-01 08:33:02 +00:00
|
|
|
}
|
|
|
|
|
2020-04-06 05:54:45 +00:00
|
|
|
exports.run = async (client, message, args, level, data) => {
|
2020-04-01 08:33:02 +00:00
|
|
|
try {
|
|
|
|
const friendly = client.config.permLevels.find(l => l.level === level).name
|
2020-04-06 16:35:06 +00:00
|
|
|
message.reply(`Your permission level is: ${friendly} (${level})`)
|
2020-04-01 08:33:02 +00:00
|
|
|
} catch (err) {
|
|
|
|
message.channel.send('There was an error!\n' + err).catch()
|
|
|
|
}
|
|
|
|
}
|