mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
misc fixes
This commit is contained in:
@@ -221,8 +221,8 @@ namespace CompatBot.Commands
|
||||
var unit = EightBallTimeUnits[crng.Next(EightBallTimeUnits.Count)];
|
||||
if (number > 1)
|
||||
{
|
||||
if (unit.EndsWith('y'))
|
||||
unit = unit.Substring(0, unit.Length - 1) + "ie";
|
||||
if (unit.EndsWith("ry"))
|
||||
unit = unit.Substring(0, unit.Length - 1) + "rie";
|
||||
unit += "s";
|
||||
if (unit == "millenniums")
|
||||
unit = "millennia";
|
||||
|
||||
@@ -307,7 +307,7 @@ namespace CompatBot.Utils
|
||||
{
|
||||
StrA = strA,
|
||||
StrB = strB,
|
||||
Coefficient = Normalizer.ToCanonicalForm(strA).GetScoreWithAcronym(Normalizer.ToCanonicalForm(strB)),
|
||||
Coefficient = strA.ToCanonicalForm().GetScoreWithAcronym(strB.ToCanonicalForm()),
|
||||
};
|
||||
FuzzyPairCache.Set(cacheKey, match);
|
||||
return match.Coefficient;
|
||||
|
||||
Reference in New Issue
Block a user