Added hug command
This commit is contained in:
parent
18a36cfe99
commit
071e4dd366
|
@ -283,5 +283,21 @@ namespace DeukBot4.MessageHandlers.CommandHandler
|
||||||
BirthdayHandler.AddBirthday(bday, guildChannel.GuildId, request.OriginalMessage.Author.Id);
|
BirthdayHandler.AddBirthday(bday, guildChannel.GuildId, request.OriginalMessage.Author.Id);
|
||||||
await request.SendSimpleEmbed("Birthday", $"Success! Added {bday:dd MMMM yyyy} as your birthday!");
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue