ReportBot

ReportBot

A bot is a type of user. It has the same information as a user, except it isnt a human, its a "bot." It crawls around the database and cleans it, or does other handy tasks. It also has permissions about the level of access to the data (read only, add/edit).

Constructor

new ReportBot(map, reduce, location, crontab)

Source:
TODO redo description
Parameters:
Name Type Description
map function The CouchDB map function to run.
reduce function The CouchDB reduce funtion to run, if there is one.
location String The location where the functions are run, valid values are "local" and "server".
crontab String When the Bot is to run, in cron format. If undefined, runs immediately.

Extends

  • User.Model

Methods

schedule()

Source:
Schedule the bot to run the given MapReduce functions at the given location on the given crontab schedule.