Added basic info command

This commit is contained in:
Deukhoofd 2018-03-29 19:39:23 +02:00
parent 6ce512ead0
commit 64776e18eb
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 24 additions and 1 deletions

View File

@ -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)