Baphomet is the dedicated bot for nulloctet matrix
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/** * Base module that all modules extend */
let { logger } = require('../logging'); let message = require('../message');
class AbstractModule { name = "AbstractModule" description = "Base Module That All Other Modules Extend" command = "abstract_module"
constructor(name, description, command) { this.name = name; this.description = description; this.command = command; }
handleMessage(event, room) { logger.debug("[%s] [%s] [%s]", this.name, room.name, event.event.content.body); return message.createBasic(this.name + " processed the message"); }
help(event, room) { return message.createBasic(this.name + " HELP!"); }
}
exports.AbstractModule = AbstractModule
|