first build of v2

This commit is contained in:
2026-03-15 01:29:16 +00:00
parent 177cb12b59
commit ab9c7223ca
13 changed files with 281 additions and 390 deletions

View File

@@ -0,0 +1,30 @@
using System.Collections.Concurrent;
using SkyBot.Helpers;
using Valour.Sdk.Models;
namespace SkyBot.Commands
{
public static class HelpCommand
{
public static async Task Execute(ConcurrentDictionary<long, Channel> channelCache, long channelId, String prefix, PlanetMember member)
{
string helpMessage = $@"**Skybot Commands**:
- `s/echo <text>` - Echos text into the chat
- `s/suggest` - Shares the suggestions link
- `s/source` - Sends link for the source code
- `s/joincode` - Sends a link to a github that you can use to make your bot join your planet.
- `s/joinsite` - Sends a link to a website that you can use to make yout bot join your planet.
- `s/api|swagger` - Sends a link to the Swagger API
- `s/cmds|help` - Shows this list
- `s/usercount` - Shows the user count of Valour
- `s/devcentral` - Sends the invite link to the Dev Central Planet
- `s/mc` - Sends Unofficial ValourSMP IPs
";
if (channelCache.TryGetValue(channelId, out var channel))
{
await channel.SendMessageAsync($"{MentionHelper.Mention(member)}\n{helpMessage}");
}
}
}
}