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.

23 lines
556 B

  1. /**
  2. * Base module that all modules extend
  3. */
  4. let { logger } = require('../logging');
  5. class AbstractModule {
  6. name = "AbstractModule"
  7. description = "Base Module That All Other Modules Extend"
  8. command = "abstract_module"
  9. constructor(name, description, command) {
  10. this.name = name;
  11. this.description = description;
  12. this.command = command;
  13. }
  14. handleMessage(event, room) {
  15. logger.debug("[%s] [%s] [%s]", this.name, room.name, event.event.content.body);
  16. }
  17. }
  18. exports.AbstractModule = AbstractModule