buddy

node MVC discord bot
Log | Files | Refs | README

index.js (268B)


      1 'use strict';
      2 
      3 const { WSEvents } = require('../../../util/Constants');
      4 
      5 const handlers = {};
      6 
      7 for (const name of Object.keys(WSEvents)) {
      8   try {
      9     handlers[name] = require(`./${name}.js`);
     10   } catch {} // eslint-disable-line no-empty
     11 }
     12 
     13 module.exports = handlers;