pick no longer has cooldown on public bot

This commit is contained in:
Kwoth 2017-02-13 18:26:58 +01:00
parent 838e014f73
commit 53b6a77fc2

View File

@ -129,12 +129,6 @@ namespace NadekoBot.Modules.Games
if (!(await channel.Guild.GetCurrentUserAsync()).GetPermissions(channel).ManageMessages)
return;
#if GLOBAL_NADEKO
if (!usersRecentlyPicked.Add(Context.User.Id))
return;
#endif
try
{
List<IUserMessage> msgs;
@ -148,14 +142,6 @@ namespace NadekoBot.Modules.Games
var msg = await channel.SendConfirmAsync($"**{Context.User}** picked {msgs.Count}{NadekoBot.BotConfig.CurrencySign}!").ConfigureAwait(false);
msg.DeleteAfter(10);
}
finally
{
#if GLOBAL_NADEKO
await Task.Delay(60000);
usersRecentlyPicked.TryRemove(Context.User.Id);
#endif
}
}
[NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)]