maybe better ropl?

This commit is contained in:
Master Kwoth 2016-05-30 23:06:58 +02:00
parent 702b2b1588
commit 5dadfb4deb

View File

@ -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<string, Func<string>> PlayingPlaceholders { get; } =
new Dictionary<string, Func<string>> {
@ -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 { }
};