From 7ad6dae32d65d430e866c985f306e161c420e5cd Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Wed, 13 May 2020 15:16:22 -0700 Subject: [PATCH] Add support for channel points highlighting in terminal --- bot.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index d9ec322..7ba88aa 100644 --- a/bot.py +++ b/bot.py @@ -626,11 +626,16 @@ async def amain(config: Config, *, quiet: bool) -> None: f'{msg_match[3][8:-1]}\033[m', ) else: + if info.get('msg-id') == 'highlighted-message': + msg_s = f'\033[48;2;117;094;188m{msg_match[3]}\033[m' + else: + msg_s = msg_match[3] + print( f'{dt_str()}' f'{_badges(info["badges"])}' f'<{color_start}{info["display-name"]}\033[m> ' - f'{msg_match[3]}', + f'{msg_s}', ) for pattern, handler in HANDLERS: