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.
24 lines
556 B
24 lines
556 B
/**
|
|
* Base module that all modules extend
|
|
*/
|
|
|
|
let { logger } = require('../logging');
|
|
|
|
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);
|
|
}
|
|
|
|
}
|
|
|
|
exports.AbstractModule = AbstractModule
|