remove fsimport

This commit is contained in:
Flummi
2017-12-04 13:03:21 +01:00
parent 6d5b33bed4
commit e7b8f0b456
3 changed files with 6 additions and 17 deletions

View File

@ -6,8 +6,6 @@ import modules from "./irc/main";
import net from "net";
import tls from "tls";
import EventEmitter from "events";
import util from "util";
import fs from "fs";
const colors = {
red: "\x0304$1\x0304",
@ -21,9 +19,9 @@ const replaceColor = (match, color, text) => {
return text;
};
export class irc {
export class irc extends EventEmitter {
constructor(options) {
EventEmitter.call(this);
super();
this.options = options || {};
this.options.channels = this.options.channels || [];
this.options.host = this.options.host || "127.0.0.1";
@ -161,7 +159,6 @@ export class irc {
;
}
}
util.inherits(irc, EventEmitter);
Map.prototype.hasi = function(val) {
for (let [key] of this)

View File

@ -1,6 +1,6 @@
import { logger } from "../log.mjs";
import { getLevel } from "../admin.mjs";
import { spurdo } from "../spurdo.mjs";
import { logger } from "../log";
import { getLevel } from "../admin";
import { spurdo } from "../spurdo";
import rp from "request-promise";
import EventEmitter from "events";