Dev Branch yay!
This commit is contained in:
@@ -9,9 +9,9 @@ public static class HelpComamnd
|
||||
string helpMessage = $@"**Reactor Commands**:
|
||||
- `{prefix}help` - Shows this list.";
|
||||
|
||||
if (channelCache.TryGetValue(channelId, out var channel))
|
||||
{
|
||||
await channel.SendMessageAsync($"{memberPing}\n{helpMessage}");
|
||||
}
|
||||
if (channelCache.TryGetValue(channelId, out var channel))
|
||||
{
|
||||
await channel.SendMessageAsync($"{memberPing}\n{helpMessage}");
|
||||
}
|
||||
}
|
||||
}
|
||||
14
Commands/SourceCommand.cs
Normal file
14
Commands/SourceCommand.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Valour.Sdk.Models;
|
||||
|
||||
namespace Reactor.Commands;
|
||||
|
||||
public static class SourceComamnd
|
||||
{
|
||||
public static async Task Execute(Dictionary<long, Channel> channelCache, long channelId, string memberPing)
|
||||
{
|
||||
if (channelCache.TryGetValue(channelId, out var channel))
|
||||
{
|
||||
await channel.SendMessageAsync($"{memberPing} You can see my source code here: https://github.com/SkyJoshua/Reactor");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user