Initial commit
This commit is contained in:
17
Commands/HelpCommand.cs
Normal file
17
Commands/HelpCommand.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Valour.Sdk.Models;
|
||||
|
||||
namespace Reactor.Commands;
|
||||
|
||||
public static class HelpComamnd
|
||||
{
|
||||
public static async Task Execute(Dictionary<long, Channel> channelCache, long channelId, String prefix, string memberPing)
|
||||
{
|
||||
string helpMessage = $@"**Reactor Commands**:
|
||||
- `{prefix}help` - Shows this list.";
|
||||
|
||||
if (channelCache.TryGetValue(channelId, out var channel))
|
||||
{
|
||||
await channel.SendMessageAsync($"{memberPing}\n{helpMessage}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user