From 8b2cd65526f7535ab43266653bd1146add8bd880 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Thu, 7 Jun 2018 02:35:19 +0200 Subject: Added generic Help system added EasyCompare as static method --- DiscoBot/Commands/MiscCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'DiscoBot/Commands/MiscCommands.cs') 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"); -- cgit v1.2.3-54-g00ecf