more colors!

This commit is contained in:
jkhsjdhjs 2019-08-18 01:09:10 +02:00
parent d2d9ef70a5
commit ea212a5ad0
Signed by: jkhsjdhjs
GPG Key ID: BAC6ADBAB7D576CC

View File

@ -4,13 +4,25 @@ import net from "net";
import tls from "tls"; import tls from "tls";
import EventEmitter from "events"; import EventEmitter from "events";
const colors = { const colors = [
red: "04", "white",
blue: "12", "black",
yellow: "08", "navy",
green: "03", "green",
brown: "05" "red",
}; "brown",
"purple",
"orange",
"yellow",
"lightgreen",
"teal",
"cyan",
"blue",
"magenta",
"gray",
"lightgray"
].reduce((a, b, i) => ({...a, ...{[b]: i.toString().padStart(2, 0)}}), {});
const msgmodes = { const msgmodes = {
normal: "PRIVMSG {recipient} :{msg}", normal: "PRIVMSG {recipient} :{msg}",
action: "PRIVMSG {recipient} :\u0001ACTION {msg}\u0001", action: "PRIVMSG {recipient} :\u0001ACTION {msg}\u0001",