summaryrefslogtreecommitdiff
path: root/DiscoBot/Commands/MiscCommands.cs
diff options
context:
space:
mode:
Diffstat (limited to 'DiscoBot/Commands/MiscCommands.cs')
-rw-r--r--DiscoBot/Commands/MiscCommands.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/DiscoBot/Commands/MiscCommands.cs b/DiscoBot/Commands/MiscCommands.cs
index daf34e2..46cd6eb 100644
--- a/DiscoBot/Commands/MiscCommands.cs
+++ b/DiscoBot/Commands/MiscCommands.cs
@@ -88,7 +88,7 @@ namespace DiscoBot.Commands
var sc = new SpellCorrect();
var rand = new System.Random((s1+s2).GetHashCode());
- var wert = Math.Log10(Math.Floor(1000.0 * (sc.CompareExact(s1, s2) + rand.NextDouble() * 10.0)) / 1000.0);
+ var wert = Math.Log10(Math.Floor(1000.0 * (SpellCorrect.CompareExact(s1, s2) + rand.NextDouble() * 10.0)) / 1000.0);
wert = ((wert * 100.0) < 100.0 ? wert * 100.0 : 100.0 - wert);
wert = wert < 0 ? -wert : wert;
return this.ReplyAsync($"Ihr passt zu {Math.Floor(100.0 * wert )/ 100.0}% zusammen");