public nadeko stuff

This commit is contained in:
Master Kwoth
2017-10-31 09:52:46 +01:00
parent 0eab51cfea
commit e604bbca50
7 changed files with 78 additions and 17 deletions

View File

@ -24,7 +24,35 @@ namespace NadekoBot.Modules.Games
{
_images = images;
}
#if GLOBAL_NADEKO
[NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)]
public async Task TrickOrTreat()
{
if (DateTime.UtcNow.Day != 31 ||
DateTime.UtcNow.Month != 10
|| !_service.HalloweenAwardedUsers.Add(Context.User.Id)
)
{
return;
}
if (await _service.GetTreat(Context.User.Id))
{
await Context.Channel
.SendConfirmAsync($"You've got a treat of 10🍬! Happy Halloween!")
.ConfigureAwait(false);
}
else
{
await Context.Channel
.EmbedAsync(new EmbedBuilder()
.WithDescription("No treat for you :c Happy Halloween!")
.WithImageUrl("http://tinyurl.com/ybntddbb")
.WithErrorColor())
.ConfigureAwait(false);
}
}
#endif
[NadekoCommand, Usage, Description, Aliases]
public async Task Choose([Remainder] string list = null)
{