diff options
Diffstat (limited to 'src/cleaners/rank.ts')
-rw-r--r-- | src/cleaners/rank.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cleaners/rank.ts b/src/cleaners/rank.ts index 2ce95c8..a9bc255 100644 --- a/src/cleaners/rank.ts +++ b/src/cleaners/rank.ts @@ -1,7 +1,7 @@ import typedHypixelApi from 'typed-hypixel-api' import { colorCodeFromName, minecraftColorCodes } from '../util.js' -const rankColors: { [name: string]: string } = { +export const RANK_COLORS: { [name: string]: string } = { 'NONE': '7', 'VIP': 'a', 'VIP+': 'a', @@ -69,8 +69,8 @@ export function cleanRank({ } const plusColor = rankPlusColor ? colorCodeFromName(rankPlusColor) : null - color = minecraftColorCodes[rankColors[name]] - let rankColorPrefix = rankColors[name] ? '§' + rankColors[name] : '' + color = minecraftColorCodes[RANK_COLORS[name]] + let rankColorPrefix = RANK_COLORS[name] ? '§' + RANK_COLORS[name] : '' // the text is white, but only in the prefix if (name === 'YOUTUBE') |