Skip to content

Instantly share code, notes, and snippets.

View AJFire14's full-sized avatar

AJFire14 AJFire14

View GitHub Profile
@TobiasFeld22
TobiasFeld22 / file.js
Created March 26, 2017 20:17
progress?
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