1
0
mirror of https://gitlab.com/Deukhoofd/DeukBot4.git synced 2025-10-27 17:00:05 +00:00

Added hug command

This commit is contained in:
2018-10-15 17:27:50 +02:00
parent 18a36cfe99
commit 071e4dd366

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);
}
}
}