Added basic info command
This commit is contained in:
parent
6ce512ead0
commit
64776e18eb
|
@ -1,6 +1,8 @@
|
|||
using System.Threading.Tasks;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using DeukBot4.MessageHandlers.CommandHandler.RequestStructure;
|
||||
using DeukBot4.MessageHandlers.Permissions;
|
||||
using Discord;
|
||||
|
||||
namespace DeukBot4.MessageHandlers.CommandHandler
|
||||
{
|
||||
|
@ -8,6 +10,27 @@ namespace DeukBot4.MessageHandlers.CommandHandler
|
|||
{
|
||||
public override string Name => "General";
|
||||
|
||||
[Command("info", PermissionLevel.Everyone)]
|
||||
public async Task Info(CommandRequest request)
|
||||
{
|
||||
var embed = new EmbedBuilder
|
||||
{
|
||||
Author = new EmbedAuthorBuilder()
|
||||
{
|
||||
Name = "DeukBot",
|
||||
Url = "https://gitlab.com/Deukhoofd/DeukBot4/tree/master/DeukBot4/MessageHandlers/CommandHandler"
|
||||
},
|
||||
Color = Color.Gold,
|
||||
Title = "Deukbot Info",
|
||||
Description = "A bot designed by Deukhoofd for use on the Epsilon server",
|
||||
Timestamp = DateTime.UtcNow
|
||||
};
|
||||
embed.AddField("Software", "Deukbot 4.0", true);
|
||||
embed.AddField("Creator", "Deukhoofd#7361", true);
|
||||
|
||||
await request.OriginalMessage.Channel.SendMessageAsync("", embed: embed.Build());
|
||||
}
|
||||
|
||||
[Command("ping", PermissionLevel.Everyone)]
|
||||
[CommandHelp("Simple Ping Pong Response", "Generates a simple Pong response when triggered")]
|
||||
public async Task Ping(CommandRequest request)
|
||||
|
|
Loading…
Reference in New Issue