From 35e59c8c58600c8016b6e34f2b0f108ee5d1892f Mon Sep 17 00:00:00 2001 From: Kwoth Date: Thu, 20 Oct 2016 04:14:28 +0200 Subject: [PATCH] Typing articles will repeat every 4 messages instead of 2 --- src/NadekoBot/Modules/Games/Commands/SpeedTypingCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Games/Commands/SpeedTypingCommands.cs b/src/NadekoBot/Modules/Games/Commands/SpeedTypingCommands.cs index 7cbcdc2c..466bc23a 100644 --- a/src/NadekoBot/Modules/Games/Commands/SpeedTypingCommands.cs +++ b/src/NadekoBot/Modules/Games/Commands/SpeedTypingCommands.cs @@ -121,7 +121,7 @@ namespace NadekoBot.Modules.Games { try { - if (channel == null || channel.Id != channel.Id || msg.Author.Id == NadekoBot.Client.GetCurrentUser().Id) return; + if (channel == null || channel.Id != channel.Id) return; var guess = msg.Content; @@ -131,7 +131,7 @@ namespace NadekoBot.Modules.Games { finishedUserIds.Add(msg.Author.Id); await channel.SendMessageAsync($"{msg.Author.Mention} finished in **{sw.Elapsed.Seconds}** seconds with { distance } errors, **{ CurrentSentence.Length / WORD_VALUE / sw.Elapsed.Seconds * 60 }** WPM!").ConfigureAwait(false); - if (finishedUserIds.Count % 2 == 0) + if (finishedUserIds.Count % 4 == 0) { await channel.SendMessageAsync($":exclamation: `A lot of people finished, here is the text for those still typing:`\n\n**{Format.Sanitize(CurrentSentence.Replace(" ", " \x200B")).SanitizeMentions()}**").ConfigureAwait(false); }