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: case ImageType.cuddle:
emb.WithDescription($"{ctx.User.Mention} cuddled {text}"); emb.WithDescription($"{ctx.User.Mention} cuddled {text}");
break; break;
case ImageType.slap:
emb.WithDescription($"{ctx.User.Mention} slapped {text}");
break;
} }
} }
await ctx.Channel.EmbedAsync(emb); await ctx.Channel.EmbedAsync(emb);
@ -82,6 +86,7 @@ public sealed class Social : Canary
kiss, kiss,
wave, wave,
cuddle, cuddle,
slap,
waifu, waifu,
neko, neko,
shinobu, shinobu,
@ -119,6 +124,12 @@ public sealed class Social : Canary
{ {
await service.SendWaifuPicsEmbedAsync(ctx, ImageType.cuddle, text); 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 public sealed class Images(SocialService service) : Canary

View file

@ -18,7 +18,7 @@
<ItemGroup> <ItemGroup>
<!-- Base marmalade package. You MUST reference this in order to have a working marmalade --> <!-- 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 --> <!-- 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> <PrivateAssets>all</PrivateAssets>
</PackageReference> </PackageReference>

View file

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