remove fsimport
This commit is contained in:
@ -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)
|
||||
|
@ -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";
|
||||
|
Reference in New Issue
Block a user