This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var input = msg.content.split(" ") | |
if(input[0] == config.prefix + "accept"){ | |
d = new Date(); | |
if (client.guilds.get("294509304868896769").members.get(msg.author.id) == undefined){msg.channel.sendMessage("", {embed: {title: "You have no permission to execute this command!", description: "Only an **ADL Team Member** is able to do this.\nYou are: **ADL User**" , color: 0xff0000, footer: {text: ":no_entry: "}, timestamp: d}}); return} | |
else if (client.guilds.get("294509304868896769").members.get(msg.author.id).roles.get("295625073241620490") != undefined){msg.channel.sendMessage("", {embed: {title: "You have no permission to execute this command!", description: "Only an **ADL Team Member** is able to do this.\nYou are: **ADL User**" , color: 0xff0000, footer: {text: ":no_entry: "}, timestamp: d}}); return} | |
if (input[1] == null || IsNan(input[1]) == true){msg.channel.sendMessage(":1234: Please use a number"); return} | |
connection.query("select * from cases where cases = ?", [input[1]], function(err, resul |