Created
August 4, 2011 02:00
-
-
Save NuckChorris/1124346 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| javascript:(function(){ MiddleMan.Commands.bind("welcome", 1, function (args) { MiddleMan.dAmnSend.msg(false, "<sub>:party: <b>" + args + ":</b> Wanna be a ninja? Well, then press \"<code>F5</code>\" (reload) so we can recruit you! Together, we can beat these gay-ass unicorns!</sub>"); }); MiddleMan.Commands.bind("haider", 1, function (args) { MiddleMan.dAmnSend.msg(false, "<sub> :party: <b> " + args + ": Congratulations on becoming a Ninja, you're already looking smarter than Naruto. Read <a href=\"http://news.deviantart.com/article/157268/\">this</a> and get started beating those fucking unicorns!</sub>"); }); MiddleMan.Commands.bind("pcsay", 1, function (msg) { usersInPC = new Array(); var args = msg.split(" "); var argsE = new Array(); $.each(args, function (key, val) { argsE.push(msg.split(" ").slice(key).join(" ")); }); $.each(MiddleMan.getChannel().members.members, function (key, val) { if (this.info.pc.toLowerCase() == args[0].toLowerCase()) { usersInPC.push(this.name); } }); MiddleMan.dAmnSend.msg(false, "<abbr title = \"" + usersInPC.join(" ") + " (away)\"></abbr>" + args[0] + ": " + argsE[1]); }); var fn = function(packet){ try { packet.body = packet.body.replace('s=0','s=1'); return packet } catch (e) { return packet } }; MiddleMan.Event.bind("dAmnChat_recv", "join", "showNotices", fn); MiddleMan.Event.bind("dAmnChat_recv", "part", "showNotices", fn); })();void(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment