Cancels the monitoring of the current bot process.
Safe function to call from other packages that will alert the maintainer if monitoring is on, and no-op otherwise.
Message for the maintainer about the issue
Begins monitoring a specified API instance.
An instance of the facebook-chat-api to monitor
User ID of the maintainer to notify on failures
Name of the bot running
Object containing the user credentials
Node.js process to monitor (optional)
A callback to send a new API instance to if login failed and a re-attempted login succeeded (optional – omitting this callback is equivalent to disabling the retry login feature)
Generated using TypeDoc
Monitoring API
Provides a basic utility for monitoring a running bot process. It is configurable, with options to notify a maintainer if the bot goes down, automatically retry logins for stale processes, and restart the bot process entirely if all else fails.