summaryrefslogtreecommitdiff
path: root/DiscoBot/Commands/MiscCommands.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-06-07 02:35:19 +0200
committerTrueDoctor <d-kobert@web.de>2018-06-07 02:35:19 +0200
commit8b2cd65526f7535ab43266653bd1146add8bd880 (patch)
tree57e0941cfab44d8720dc8f0aed5cee4e695b6176 /DiscoBot/Commands/MiscCommands.cs
parent111b46289213b293f0977060588a90f880b3852e (diff)
Added generic Help system
added EasyCompare as static method
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");