enwnbot

Converts MediaWiki [[links]] and {{templates}} to links on IRC
git clone http://git.hanabi.in/repos/enwnbot.git
Log | Files | Refs | README | LICENSE

config.js (782B)


      1 const config = {
      2   admins: ['jdoe'],
      3   botAccount: 'bot@botaccount',
      4   botName: 'linkBOT',
      5   botPass: 'botPass',
      6   channels: ['#foo', '##bar'],
      7   maintainers: ['ssmith'],
      8   report: '!ADMIN',
      9   setterAdmins: ['matt', 'tony'],
     10   allowedSetters: ['nick', 'nat'],
     11   RQAPI:
     12     'https://en.wikinews.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:Review&format=json&cmsort=timestamp&cmprop=timestamp|ids|title',
     13   server: 'irc.freenode.net',
     14   shortURL:
     15     'https://meta.wikimedia.org/w/api.php?action=shortenurl&format=json&url=',
     16   URL: 'https://en.wikinews.org/wiki/',
     17   URAPI:
     18     'https://en.wikinews.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:Under%20review&format=json&cmsort=timestamp&cmprop=title|timestamp',
     19 };
     20 
     21 module.exports = config;