FANDOM


__NOWYSIWYG__

This bot uses strings from other pages in this wiki: WikiReader.js/Greeting.txt, WikiReader.js/English.txt, WikiReader.js/Spanish.txt, WikiReader.js/Hebrew.txt...

/* class=gwtchat.server.JavascriptBot */
 
/* greeting for a new user: */
function greet(chatter) {
  var greeting = wiki.get('WikiReader.js/Greeting.txt');
  greeting = greeting.replace("$name", chatter.name);
  chat.say(greeting);
}
 
/* Reply: */
function hear(chatter, message) {
  var pageName = "WikiReader.js/"+message+".txt";
  if (wiki.contains(pageName)) {
    var text = wiki.get(pageName);
    text = text.replace("$name", chatter.name); // insert the chatter name inside the template
    chat.say(text);
  } else {
    chat.say("I cannot greet you in "+message+" because the page "+pageName+" does not exist in the wiki!");
  }
}
End of bot WikiReader.js

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.