add staff and turbo badges

This commit is contained in:
Anthony Sottile 2020-05-11 14:07:29 -07:00
parent 30b423fd0f
commit 1f1d5a337d
1 changed files with 2 additions and 0 deletions

2
bot.py
View File

@ -76,11 +76,13 @@ def _parse_color(s: str) -> Tuple[int, int, int]:
def _badges(badges: str) -> str: def _badges(badges: str) -> str:
ret = '' ret = ''
for s, reg in ( for s, reg in (
('\033[48;2;000;000;000m⚙\033[m', re.compile('^staff/')),
('\033[48;2;224;005;185m♦\033[m', re.compile('^vip/')), ('\033[48;2;224;005;185m♦\033[m', re.compile('^vip/')),
('\033[48;2;233;025;022m☞\033[m', re.compile('^broadcaster/')), ('\033[48;2;233;025;022m☞\033[m', re.compile('^broadcaster/')),
('\033[48;2;130;005;180m★\033[m', re.compile('^founder/')), ('\033[48;2;130;005;180m★\033[m', re.compile('^founder/')),
('\033[48;2;130;005;180m★\033[m', re.compile('^subscriber/')), ('\033[48;2;130;005;180m★\033[m', re.compile('^subscriber/')),
('\033[48;2;000;160;214m♕\033[m', re.compile('^premium/')), ('\033[48;2;000;160;214m♕\033[m', re.compile('^premium/')),
('\033[48;2;089;057;154m♕\033[m', re.compile('^turbo/')),
('\033[48;2;088;226;193m◘\033[m', re.compile('^sub-gifter/')), ('\033[48;2;088;226;193m◘\033[m', re.compile('^sub-gifter/')),
('\033[48;2;203;200;208m▴\033[m', re.compile('^bits/')), ('\033[48;2;203;200;208m▴\033[m', re.compile('^bits/')),
('\033[48;2;230;186;072m♦\033[m', re.compile('^bits-leader/')), ('\033[48;2;230;186;072m♦\033[m', re.compile('^bits-leader/')),