Rename UserInterface to TextCommands

This commit is contained in:
Noi 2022-01-30 19:53:02 -08:00
parent b1edcb6fd1
commit ffdb1cd0e6
8 changed files with 10 additions and 10 deletions

View file

@ -1,7 +1,7 @@
using BirthdayBot.BackgroundServices;
using BirthdayBot.Data;
using Discord.Net;
using static BirthdayBot.UserInterface.CommandsCommon;
using static BirthdayBot.TextCommands.CommandsCommon;
namespace BirthdayBot;
@ -132,7 +132,7 @@ class ShardInstance : IDisposable {
if (ex is HttpException) return;
Log("Command", ex.ToString());
try {
channel.SendMessageAsync(UserInterface.CommandsCommon.InternalError).Wait();
channel.SendMessageAsync(TextCommands.CommandsCommon.InternalError).Wait();
} catch (HttpException) { } // Fail silently
}
}

View file

@ -1,9 +1,9 @@
global using Discord;
global using Discord.WebSocket;
using BirthdayBot.BackgroundServices;
using BirthdayBot.UserInterface;
using BirthdayBot.TextCommands;
using System.Text;
using static BirthdayBot.UserInterface.CommandsCommon;
using static BirthdayBot.TextCommands.CommandsCommon;
namespace BirthdayBot;

View file

@ -1,6 +1,6 @@
using System.Text;
namespace BirthdayBot.UserInterface;
namespace BirthdayBot.TextCommands;
internal class CommandDocumentation {
public string[] Commands { get; }

View file

@ -3,7 +3,7 @@ using NodaTime;
using System.Collections.ObjectModel;
using System.Text.RegularExpressions;
namespace BirthdayBot.UserInterface;
namespace BirthdayBot.TextCommands;
/// <summary>
/// Common base class for common constants and variables.

View file

@ -1,7 +1,7 @@
using BirthdayBot.Data;
using System.Text;
namespace BirthdayBot.UserInterface;
namespace BirthdayBot.TextCommands;
internal class HelpInfoCommands : CommandsCommon {
private readonly Embed _helpEmbed;

View file

@ -1,7 +1,7 @@
using BirthdayBot.Data;
using System.Text;
namespace BirthdayBot.UserInterface;
namespace BirthdayBot.TextCommands;
/// <summary>
/// Commands for listing upcoming and all birthdays.

View file

@ -2,7 +2,7 @@
using System.Text;
using System.Text.RegularExpressions;
namespace BirthdayBot.UserInterface;
namespace BirthdayBot.TextCommands;
internal class ManagerCommands : CommandsCommon {
private static readonly string ConfErrorPostfix =

View file

@ -1,7 +1,7 @@
using BirthdayBot.Data;
using System.Text.RegularExpressions;
namespace BirthdayBot.UserInterface;
namespace BirthdayBot.TextCommands;
internal class UserCommands : CommandsCommon {
public UserCommands(Configuration db) : base(db) { }