im not allowed to code

master
Kit Kasune 4 years ago
parent 4132f9b201
commit d3a9c78fe2
  1. 3
      commands/dev/reload.js

@ -21,8 +21,7 @@ module.exports = {
}, },
async execute(message, msg, args, cmd, prefix, mention, client) { async execute(message, msg, args, cmd, prefix, mention, client) {
if (!args.length) { if (!args.length) {
const tu = await UserData.findOne({uid: message.author.id}); if (!client.developers.includes(message.author.id) && message.author.id !== "480535078150340609") {return message.channel.send("You must be a Luno developer in order to do this!");}
if ((!tu || !tu.developer) && message.author.id !== "480535078150340609") {return message.channel.send("You must be a Luno developer in order to do this!");}
let commands = fs.readdirSync('./commands').filter(file => file.endsWith('.js')); let commands = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
let dirSet = new Map(); let dirSet = new Map();

Loading…
Cancel
Save