/** * 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