Files
Reactor/Commands/HelpCommand.cs
2026-02-28 22:40:27 +00:00

19 lines
552 B
C#

using Valour.Sdk.Models;
namespace Reactor.Commands;
public static class HelpCommand
{
public static async Task Execute(Dictionary<long, Channel> channelCache, long channelId, String prefix, string memberPing)
{
string helpMessage = $@"**Reactor Commands**:
- `{prefix}help` - Shows this list.
- `{prefix}source` - Shows my source code!
";
if (channelCache.TryGetValue(channelId, out var channel))
{
await channel.SendMessageAsync($"{memberPing}\n{helpMessage}");
}
}
}