Added hug command

This commit is contained in:
Deukhoofd 2018-10-15 17:27:50 +02:00
parent 18a36cfe99
commit 071e4dd366
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 16 additions and 0 deletions

View File

@ -283,5 +283,21 @@ namespace DeukBot4.MessageHandlers.CommandHandler
BirthdayHandler.AddBirthday(bday, guildChannel.GuildId, request.OriginalMessage.Author.Id);
await request.SendSimpleEmbed("Birthday", $"Success! Added {bday:dd MMMM yyyy} as your birthday!");
}
[Command("hug", PermissionLevel.Everyone)]
[CommandParameters(ParameterMatcher.ParameterType.User)]
[BlockUsageInPm, RequireParameterMatch]
public async Task Hug(CommandRequest request)
{
var guildChannel = request.OriginalMessage.Channel as IGuildChannel;
if (guildChannel == null)
return;
var user = await request.Parameters[0].AsDiscordUser(guildChannel.Guild);
var message = $"{request.OriginalMessage.Author.Mention} gives {user.Mention} a hug!";
if (request.OriginalMessage.Author.Id == 355330726650052610)
message += " That's pt gay tbh.";
request.SendSimpleEmbed("Hug!", message);
}
}
}