From 5dadfb4deb8456683888182197052ff391e0406d Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Mon, 30 May 2016 23:06:58 +0200 Subject: [PATCH] maybe better ropl? --- NadekoBot/Modules/Administration/Commands/PlayingRotate.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NadekoBot/Modules/Administration/Commands/PlayingRotate.cs b/NadekoBot/Modules/Administration/Commands/PlayingRotate.cs index 20071ca2..e3589342 100644 --- a/NadekoBot/Modules/Administration/Commands/PlayingRotate.cs +++ b/NadekoBot/Modules/Administration/Commands/PlayingRotate.cs @@ -14,7 +14,7 @@ namespace NadekoBot.Modules.Administration.Commands { internal class PlayingRotate : DiscordCommand { - private static readonly Timer timer = new Timer(12000); + private static readonly Timer timer = new Timer(20000); public static Dictionary> PlayingPlaceholders { get; } = new Dictionary> { @@ -41,7 +41,7 @@ namespace NadekoBot.Modules.Administration.Commands public PlayingRotate(DiscordModule module) : base(module) { var i = -1; - timer.Elapsed += (s, e) => + timer.Elapsed += async (s, e) => { try { @@ -63,7 +63,7 @@ namespace NadekoBot.Modules.Administration.Commands } if (string.IsNullOrWhiteSpace(status)) return; - Task.Run(() => { NadekoBot.Client.SetGame(status); }); + await Task.Run(() => { NadekoBot.Client.SetGame(status); }); } catch { } };