Merge branch 'typescript' of https://github.com/keanuplayz/TravBot-v3 into experimental-core-rollout

This commit is contained in:
WatDuhHekBro 2021-04-07 20:33:12 -05:00
commit dd6f04fb25
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ function processEmoteQuery(query: string[], isFormatted: boolean): string[] {
// Find all similar emote candidates within certian threshold and select Nth top one according to the selector.
const similarEmotes = searchSimilarEmotes(emote);
if (similarEmotes.length > 0) {
selector = Math.min(selector, similarEmotes.length);
selector = Math.min(selector, similarEmotes.length - 1);
return similarEmotes[selector].toString();
}