Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- importScriptPage("MediaWiki:JacobsLadderSuite.js","d97");
- var safetyPattern = /\!say/i;
- mainRoom.model.chats.bind("afteradd", function() {
- if(JLAPI.mostRecentMessage.message().slice(0,4) == "!say") {
- if(JLAPI.mostRecentMessage.message().slice(5).indexOf("!say") != -1) {
- JLAPI.message.send("No");
- } else {
- JLAPI.message.send(JLAPI.mostRecentMessage.message().slice(5).replace(safetyPattern, "!say"));
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement