Updated dependencies latest and added new slap command.

This commit is contained in:
Toastie 2024-12-20 03:31:00 +13:00
parent c7e6c9d102
commit 5ee53a6869
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
3 changed files with 18 additions and 1 deletions

View file

@ -53,6 +53,10 @@ public sealed class Social : Canary
case ImageType.cuddle:
emb.WithDescription($"{ctx.User.Mention} cuddled {text}");
break;
case ImageType.slap:
emb.WithDescription($"{ctx.User.Mention} slapped {text}");
break;
}
}
await ctx.Channel.EmbedAsync(emb);
@ -82,6 +86,7 @@ public sealed class Social : Canary
kiss,
wave,
cuddle,
slap,
waifu,
neko,
shinobu,
@ -119,6 +124,12 @@ public sealed class Social : Canary
{
await service.SendWaifuPicsEmbedAsync(ctx, ImageType.cuddle, text);
}
[cmd]
public async Task Slap(AnyContext ctx, [leftover] string text = null)
{
await service.SendWaifuPicsEmbedAsync(ctx, ImageType.slap, text);
}
}
public sealed class Images(SocialService service) : Canary

View file

@ -18,7 +18,7 @@
<ItemGroup>
<!-- Base marmalade package. You MUST reference this in order to have a working marmalade -->
<!-- Also, this package comes from Toastielab, which requires you to have a NuGet.Config file next to your .csproj -->
<PackageReference Include="Ellie.Marmalade" Version="5.3.1">
<PackageReference Include="Ellie.Marmalade" Version="5.3.3">
<PrivateAssets>all</PrivateAssets>
</PackageReference>

View file

@ -28,6 +28,12 @@ wave:
- ""
- "@someone"
slap:
desc: "Slap your friends if they deserve it."
args:
- ""
- "@someone"
waifu:
desc: "Spawn a random waifu!"
args: