description:"Setup and enable your server's local leveling!",
syntax:'`setupleveling`',
extra:"Requires administrator permissions. Disabled by default.",
guildOnly:true
},
help:newDiscord.MessageEmbed()
.setTitle("Help -> Local Leveling Setup")
.setDescription("Set up your local leveling system to allow your server's members to progress in ranks, which lets you enable leveling roles and shops *features not available at this time*")//TODO remove the "features not available" as soon as they are available
.addField("Syntax","`setupleveling`")
.addField("Important Notice","You must be a server administrator in order to use this command. Please know that local leveling systems can cost a great deal of our database storage space when used on larger servers, so please only enable this feature **if you will actually make use of it**, not just for fun."),
if(!message.member.permissions.has("ADMINISTRATOR")){returnmessage.channel.send("You must be a **server administrator** in order to use this command.");}
if(awaitLXP.findOne({gid:message.guild.id})){returnmessage.channel.send("Your leveling is already set up!");}//TODO add message to lead to disable cmd when complete
letam;
try{
am=awaitmessage.channel.send("Would you like to enable :thumbsup: or disable :thumbsdown: level up messages? (You can specify a set channel for this later.)");
awaitam.react('👍');
awaitam.react('👎');
}catch{returnmessage.channel.send(":thinking: hmmm... something went wrong there. I might not have permissions to add reactions to messages, and this could be the issue.");}
.setDescription(`Your server now has its leveling system enabled! If you enabled level up messages, you can set the channel for that using \`${prefix}levelchannel\`.`)//TODO update this with info on how the shiz works
rc.on("end",collected=>{if(!collected.size){returnmessage.channel.send("Looks like you ran out of time! Try again?");}});
}catch{returnmessage.channel.send("Hmm... there was some error problem thingy that happened when I tried to enable XP for your server. If it keeps not working, then go yell at my devs!");}