Add support for channel points highlighting in terminal

This commit is contained in:
Anthony Sottile 2020-05-13 15:16:22 -07:00
parent d4babddc80
commit 7ad6dae32d
1 changed files with 6 additions and 1 deletions

7
bot.py
View File

@ -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: