pick no longer has cooldown on public bot
This commit is contained in:
parent
838e014f73
commit
53b6a77fc2
@ -129,12 +129,6 @@ namespace NadekoBot.Modules.Games
|
|||||||
|
|
||||||
if (!(await channel.Guild.GetCurrentUserAsync()).GetPermissions(channel).ManageMessages)
|
if (!(await channel.Guild.GetCurrentUserAsync()).GetPermissions(channel).ManageMessages)
|
||||||
return;
|
return;
|
||||||
#if GLOBAL_NADEKO
|
|
||||||
if (!usersRecentlyPicked.Add(Context.User.Id))
|
|
||||||
return;
|
|
||||||
#endif
|
|
||||||
try
|
|
||||||
{
|
|
||||||
|
|
||||||
List<IUserMessage> msgs;
|
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);
|
var msg = await channel.SendConfirmAsync($"**{Context.User}** picked {msgs.Count}{NadekoBot.BotConfig.CurrencySign}!").ConfigureAwait(false);
|
||||||
msg.DeleteAfter(10);
|
msg.DeleteAfter(10);
|
||||||
}
|
}
|
||||||
finally
|
|
||||||
{
|
|
||||||
#if GLOBAL_NADEKO
|
|
||||||
await Task.Delay(60000);
|
|
||||||
usersRecentlyPicked.TryRemove(Context.User.Id);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[NadekoCommand, Usage, Description, Aliases]
|
[NadekoCommand, Usage, Description, Aliases]
|
||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
|
Loading…
Reference in New Issue
Block a user