Add support for channel points highlighting in terminal
This commit is contained in:
parent
d4babddc80
commit
7ad6dae32d
7
bot.py
7
bot.py
|
|
@ -626,11 +626,16 @@ async def amain(config: Config, *, quiet: bool) -> None:
|
||||||
f'{msg_match[3][8:-1]}\033[m',
|
f'{msg_match[3][8:-1]}\033[m',
|
||||||
)
|
)
|
||||||
else:
|
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(
|
print(
|
||||||
f'{dt_str()}'
|
f'{dt_str()}'
|
||||||
f'{_badges(info["badges"])}'
|
f'{_badges(info["badges"])}'
|
||||||
f'<{color_start}{info["display-name"]}\033[m> '
|
f'<{color_start}{info["display-name"]}\033[m> '
|
||||||
f'{msg_match[3]}',
|
f'{msg_s}',
|
||||||
)
|
)
|
||||||
|
|
||||||
for pattern, handler in HANDLERS:
|
for pattern, handler in HANDLERS:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue