mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-21 13:54:36 +00:00
Rename UserInterface to TextCommands
This commit is contained in:
parent
b1edcb6fd1
commit
ffdb1cd0e6
8 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System.Text;
|
||||
|
||||
namespace BirthdayBot.UserInterface;
|
||||
namespace BirthdayBot.TextCommands;
|
||||
|
||||
internal class CommandDocumentation {
|
||||
public string[] Commands { get; }
|
|
@ -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.
|
|
@ -1,7 +1,7 @@
|
|||
using BirthdayBot.Data;
|
||||
using System.Text;
|
||||
|
||||
namespace BirthdayBot.UserInterface;
|
||||
namespace BirthdayBot.TextCommands;
|
||||
|
||||
internal class HelpInfoCommands : CommandsCommon {
|
||||
private readonly Embed _helpEmbed;
|
|
@ -1,7 +1,7 @@
|
|||
using BirthdayBot.Data;
|
||||
using System.Text;
|
||||
|
||||
namespace BirthdayBot.UserInterface;
|
||||
namespace BirthdayBot.TextCommands;
|
||||
|
||||
/// <summary>
|
||||
/// Commands for listing upcoming and all birthdays.
|
|
@ -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 =
|
|
@ -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) { }
|
Loading…
Reference in a new issue