remove trickortreat

This commit is contained in:
Master Kwoth 2017-11-01 03:10:44 +01:00
parent ad2b049ece
commit 7beee8df70

View File

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