diff --git a/ChaosBot/Discord/ModulesOld/InfoCommands.cs.txt b/ChaosBot/Discord/ModulesOld/InfoCommands.cs.txt deleted file mode 100644 index 9975add..0000000 --- a/ChaosBot/Discord/ModulesOld/InfoCommands.cs.txt +++ /dev/null @@ -1,50 +0,0 @@ -using System; -using Discord; -using System.Text; -using Discord.Commands; -using System.Threading.Tasks; -using ChaosBot.Repositories; -using Microsoft.Extensions.Configuration; -using NLog; - -namespace ChaosBot.Discord.Modules -{ - public class InfoCommands : ModuleBase - { - private static readonly ILogger _logger = Program.Logger; - - - [Command("info")] - [Alias("version")] - public async Task InfoCommand() - { - try - { - var sb = new StringBuilder(); - var embed = new EmbedBuilder(); - - embed.WithColor(new Color(255, 255,0)); - embed.Title = $"General Information"; - // TODO: pull bot nickname - sb.AppendLine($"{Context.User.Mention} has requested information from {Program.AppSettingsHandler.GetValue("Bot:Name")}."); - sb.AppendLine(); - sb.AppendLine($"Bot Version: {Program.AppSettingsHandler.GetValue("Bot:Version")}"); - sb.AppendLine($"Bot Prefix: {ConfigurationRepository.GetValue("Discord:Prefix", Context.Guild.Id, "!")}"); - - /* - * Add the string to the Embed - */ - embed.Description = sb.ToString(); - - /* - * Reply with the Embed created above - */ - await ReplyAsync(null, false, embed.Build()); - } - catch (Exception ex) - { - _logger.Error($"InfoCommands.InfoCommand: Exception [{ex}] thrown, <[{ex.Message}]>."); - } - } - } -} \ No newline at end of file