aboutsummaryrefslogtreecommitdiff
path: root/src/utils/consts.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/consts.py')
-rw-r--r--src/utils/consts.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/utils/consts.py b/src/utils/consts.py
index d2816509..5d97c045 100644
--- a/src/utils/consts.py
+++ b/src/utils/consts.py
@@ -1,2 +1,34 @@
+import typing
+
BITBOT_HOOKS_MAGIC = "__bitbot_hooks"
BITBOT_EXPORTS_MAGIC = "__bitbot_exports"
+
+class IRCColor(object):
+ def __init__(self, irc: int, ansi: typing.List[int]):
+ self.irc = irc
+ self.ansi = ansi
+
+WHITE = IRCColor(0, [1, 37])
+BLACK = IRCColor(1, [30])
+BLUE = IRCColor(2, [34])
+GREEN = IRCColor(3, [32])
+RED = IRCColor(4, [1, 31])
+BROWN = IRCColor(5, [31])
+PURPLE = IRCColor(6, [35])
+ORANGE = IRCColor(7, [33])
+YELLOW = IRCColor(8, [1, 33])
+LIGHTGREEN = IRCColor(9, [1, 32])
+CYAN = IRCColor(10, [36])
+LIGHTCYAN = IRCColor(11, [1, 36])
+LIGHTBLUE = IRCColor(12, [1, 34])
+PINK = IRCColor(13, [1, 35])
+GREY = IRCColor(14, [1, 30])
+LIGHTGREY = IRCColor(15, [37])
+
+BOLD = "\x02"
+ITALIC = "\x1D"
+UNDERLINE = "\x1F"
+INVERT = "\x16"
+COLOR = "\x03"
+RESET = "\x0F"
+