enwnbot2

Converts MediaWiki [[links]] and {{templates}} to links, informs important events from wiki, handles announces review queue, and under review, and handles when they last saw a given user.
git clone http://git.hanabi.in/repos/enwnbot2.git
Log | Files | Refs | README | LICENSE

config.js (650B)


      1 module.exports = {
      2   channels: ["#wikinews", "#wikinews-en", "#wikinewsie-group"],
      3   ircBotName: "enwnbot",
      4   ircServer: "chat.freenode.net",
      5   password: "bots-password-here",
      6   RCAPI: "https://stream.wikimedia.org/v2/stream/recentchange",
      7   RQAPI:
      8     "https://en.wikinews.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:Review&format=json&cmsort=timestamp&cmprop=timestamp|ids|title",
      9   URAPI:
     10     "https://en.wikinews.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:Under%20review&format=json&cmsort=timestamp&cmprop=title|timestamp",
     11   URL: "https://en.wikinews.org/w/index.php?title=",
     12   wiki: "enwikinews",
     13 };