docs: Updated medusa docs a little bit

This commit is contained in:
Kwoth
2024-07-22 01:26:07 +00:00
parent ad679a996d
commit 4e177ff198

View File

@@ -156,7 +156,7 @@ This section will guide you through how to create a simple custom medusa. You ca
<ItemGroup> <ItemGroup>
<!-- Base medusa package. You MUST reference this in order to have a working medusa --> <!-- Base medusa package. You MUST reference this in order to have a working medusa -->
<!-- Also, this package comes from MyGet, which requires you to have a NuGet.Config file next to your .csproj --> <!-- Also, this package comes from MyGet, which requires you to have a NuGet.Config file next to your .csproj -->
<PackageReference Include="Nadeko.Medusa" Version="4.3.9"> <PackageReference Include="Nadeko.Medusa" Version="5.*">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
</PackageReference> </PackageReference>
@@ -180,8 +180,7 @@ This section will guide you through how to create a simple custom medusa. You ca
``` ```
- Create a `MySnek.cs` file and add the following contents - Create a `MySnek.cs` file and add the following contents
```cs ```cs
using Nadeko.Snake; using NadekoBot.Medusa;
using NadekoBot;
using Discord; using Discord;
public sealed class MySnek : Snek public sealed class MySnek : Snek
@@ -199,14 +198,15 @@ public sealed class MySnek : Snek
} }
} }
``` ```
- Create `res.yml` and `cmds.yml` files with the following contents - Create `res.yml` and `cmds.yml` files with the following contents
`res.yml`
`res.yml`
```yml ```yml
medusa.description: "This is my medusa's description" medusa.description: "This is my medusa's description"
hello: "Hello {0}, from res.yml!" hello: "Hello {0}, from res.yml!"
``` ```
`cmds.yml` `cmds.yml`
```yml ```yml
hello: hello:
desc: "This is a basic hello command" desc: "This is a basic hello command"