From 0cb637d81b3530580ab0c1d2484833b778678e76 Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Sat, 9 Jul 2022 00:25:42 -0400 Subject: [PATCH] fix some imports/exports --- src/Client.js | 1 + src/ColorEncoder.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Client.js b/src/Client.js index 1ae8e53..603d012 100644 --- a/src/Client.js +++ b/src/Client.js @@ -5,6 +5,7 @@ const RateLimit = require('./Ratelimit.js').RateLimit; const RateLimitChain = require('./Ratelimit.js').RateLimitChain; const User = require("./User.js"); const Database = require("./Database.js"); +const { EventEmitter } = require('events'); class Client extends EventEmitter { constructor(ws, req, server) { diff --git a/src/ColorEncoder.js b/src/ColorEncoder.js index d91f04b..72eaa34 100644 --- a/src/ColorEncoder.js +++ b/src/ColorEncoder.js @@ -13,4 +13,8 @@ function intToRGB(i){ return "00000".substring(0, 6 - c.length) + c; } -module.exports = {hashCode, intToRGB}; \ No newline at end of file + +module.exports = { + hashCode, + intToRGB +}