Holy Big Commit!
This commit is contained in:
29
SkyBot/Commands/Info/Suggest.cs
Normal file
29
SkyBot/Commands/Info/Suggest.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.Collections.Concurrent;
|
||||
using SkyBot.Models;
|
||||
using Valour.Sdk.Models;
|
||||
|
||||
namespace SkyBot.Commands
|
||||
{
|
||||
public class Suggest : ICommand
|
||||
{
|
||||
public string Name => "suggest";
|
||||
public string[] Aliases => [];
|
||||
public string Description => "Shows the source code for this bot.";
|
||||
public string Section => "Info";
|
||||
public string Usage => "source";
|
||||
|
||||
public async Task Execute(CommandContext ctx)
|
||||
{
|
||||
ConcurrentDictionary<long, Channel> channelCache = ctx.ChannelCache;
|
||||
long channelId = ctx.ChannelId;
|
||||
PlanetMember member = ctx.Member;
|
||||
|
||||
string message = $"You can suggest a command to be added here: https://docs.google.com/spreadsheets/d/1CzcpLAuMiPL_RODrZ5x25cPj8yE-rR3mEnqrd_2Fbmk";
|
||||
|
||||
if (channelCache.TryGetValue(channelId, out var channel))
|
||||
{
|
||||
await MessageHelper.ReplyAsync(ctx, channel, message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user