User:MrAwesome8/quickban.js

/******************************************************/ /* Quickban                                          */ /* Idea by Madnessfan34537                           */ /* Code by Madnessfan34537                           */ /* Edited by MrAwesome8                              */ /******************************************************/ function banButton { var banStuff = prompt("Enter the user, time in seconds, and reason, separated by commas", "Stuff goes here"); if (banStuff.length != 0) { var banVars = banStuff.split(","); var cmd = new models.BanCommand({                           userToBan: banVars[0],                            time: parseInt(banVars[1]),                            reason: banVars[2]                    }); mainRoom.socket.socket.send(cmd.xport); }   }    $('Quick Ban ').appendTo('.Write');