2017-04-18 07:42:26 +00:00
|
|
|
"use strict";
|
|
|
|
|
2017-04-28 21:40:26 +00:00
|
|
|
const colorCodeMap = [
|
|
|
|
["00", "White"],
|
|
|
|
["01", "Black"],
|
|
|
|
["02", "Blue"],
|
|
|
|
["03", "Green"],
|
|
|
|
["04", "Red"],
|
|
|
|
["05", "Brown"],
|
|
|
|
["06", "Magenta"],
|
|
|
|
["07", "Orange"],
|
|
|
|
["08", "Yellow"],
|
|
|
|
["09", "Light Green"],
|
|
|
|
["10", "Cyan"],
|
|
|
|
["11", "Light Cyan"],
|
|
|
|
["12", "Light Blue"],
|
|
|
|
["13", "Pink"],
|
|
|
|
["14", "Grey"],
|
|
|
|
["15", "Light Grey"],
|
|
|
|
];
|
|
|
|
|
2017-04-18 07:42:26 +00:00
|
|
|
const commands = [
|
|
|
|
"/away",
|
|
|
|
"/back",
|
2017-04-24 10:40:53 +00:00
|
|
|
"/ban",
|
2017-04-18 07:42:26 +00:00
|
|
|
"/banlist",
|
|
|
|
"/close",
|
2017-07-07 04:18:37 +00:00
|
|
|
"/collapse",
|
2017-04-18 07:42:26 +00:00
|
|
|
"/connect",
|
2017-04-28 21:45:18 +00:00
|
|
|
"/ctcp",
|
2017-04-18 07:42:26 +00:00
|
|
|
"/deop",
|
|
|
|
"/devoice",
|
|
|
|
"/disconnect",
|
2017-07-07 04:18:37 +00:00
|
|
|
"/expand",
|
2017-04-18 07:42:26 +00:00
|
|
|
"/invite",
|
|
|
|
"/join",
|
|
|
|
"/kick",
|
|
|
|
"/leave",
|
|
|
|
"/me",
|
|
|
|
"/mode",
|
|
|
|
"/msg",
|
|
|
|
"/nick",
|
|
|
|
"/notice",
|
|
|
|
"/op",
|
|
|
|
"/part",
|
|
|
|
"/query",
|
|
|
|
"/quit",
|
|
|
|
"/raw",
|
|
|
|
"/say",
|
|
|
|
"/send",
|
|
|
|
"/server",
|
|
|
|
"/slap",
|
|
|
|
"/topic",
|
2017-04-24 10:40:53 +00:00
|
|
|
"/unban",
|
2017-04-18 07:42:26 +00:00
|
|
|
"/voice",
|
|
|
|
"/whois"
|
|
|
|
];
|
|
|
|
|
2017-06-22 20:08:36 +00:00
|
|
|
const actionTypes = [
|
|
|
|
"ban_list",
|
|
|
|
"invite",
|
|
|
|
"join",
|
|
|
|
"mode",
|
|
|
|
"kick",
|
|
|
|
"nick",
|
|
|
|
"part",
|
|
|
|
"quit",
|
|
|
|
"topic",
|
|
|
|
"topic_set_by",
|
|
|
|
"action",
|
|
|
|
"whois",
|
|
|
|
"ctcp",
|
|
|
|
"channel_list",
|
|
|
|
];
|
|
|
|
|
|
|
|
const condensedTypes = [
|
|
|
|
"join",
|
|
|
|
"part",
|
|
|
|
"quit",
|
2017-08-13 19:09:32 +00:00
|
|
|
"nick",
|
|
|
|
"kick",
|
|
|
|
"mode",
|
2017-06-22 20:08:36 +00:00
|
|
|
];
|
|
|
|
|
2017-05-06 18:44:57 +00:00
|
|
|
const timeFormats = {
|
|
|
|
msgDefault: "HH:mm",
|
|
|
|
msgWithSeconds: "HH:mm:ss"
|
|
|
|
};
|
|
|
|
|
2017-04-18 07:42:26 +00:00
|
|
|
module.exports = {
|
2017-04-28 21:40:26 +00:00
|
|
|
colorCodeMap: colorCodeMap,
|
2017-06-22 20:08:36 +00:00
|
|
|
commands: commands,
|
|
|
|
condensedTypes: condensedTypes,
|
|
|
|
actionTypes: actionTypes,
|
|
|
|
timeFormats: timeFormats
|
2017-04-18 07:42:26 +00:00
|
|
|
};
|