mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-21 21: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.BackgroundServices;
|
||||||
using BirthdayBot.Data;
|
using BirthdayBot.Data;
|
||||||
using Discord.Net;
|
using Discord.Net;
|
||||||
using static BirthdayBot.UserInterface.CommandsCommon;
|
using static BirthdayBot.TextCommands.CommandsCommon;
|
||||||
|
|
||||||
namespace BirthdayBot;
|
namespace BirthdayBot;
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ class ShardInstance : IDisposable {
|
||||||
if (ex is HttpException) return;
|
if (ex is HttpException) return;
|
||||||
Log("Command", ex.ToString());
|
Log("Command", ex.ToString());
|
||||||
try {
|
try {
|
||||||
channel.SendMessageAsync(UserInterface.CommandsCommon.InternalError).Wait();
|
channel.SendMessageAsync(TextCommands.CommandsCommon.InternalError).Wait();
|
||||||
} catch (HttpException) { } // Fail silently
|
} catch (HttpException) { } // Fail silently
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
global using Discord;
|
global using Discord;
|
||||||
global using Discord.WebSocket;
|
global using Discord.WebSocket;
|
||||||
using BirthdayBot.BackgroundServices;
|
using BirthdayBot.BackgroundServices;
|
||||||
using BirthdayBot.UserInterface;
|
using BirthdayBot.TextCommands;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using static BirthdayBot.UserInterface.CommandsCommon;
|
using static BirthdayBot.TextCommands.CommandsCommon;
|
||||||
|
|
||||||
namespace BirthdayBot;
|
namespace BirthdayBot;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace BirthdayBot.UserInterface;
|
namespace BirthdayBot.TextCommands;
|
||||||
|
|
||||||
internal class CommandDocumentation {
|
internal class CommandDocumentation {
|
||||||
public string[] Commands { get; }
|
public string[] Commands { get; }
|
|
@ -3,7 +3,7 @@ using NodaTime;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace BirthdayBot.UserInterface;
|
namespace BirthdayBot.TextCommands;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Common base class for common constants and variables.
|
/// Common base class for common constants and variables.
|
|
@ -1,7 +1,7 @@
|
||||||
using BirthdayBot.Data;
|
using BirthdayBot.Data;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace BirthdayBot.UserInterface;
|
namespace BirthdayBot.TextCommands;
|
||||||
|
|
||||||
internal class HelpInfoCommands : CommandsCommon {
|
internal class HelpInfoCommands : CommandsCommon {
|
||||||
private readonly Embed _helpEmbed;
|
private readonly Embed _helpEmbed;
|
|
@ -1,7 +1,7 @@
|
||||||
using BirthdayBot.Data;
|
using BirthdayBot.Data;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace BirthdayBot.UserInterface;
|
namespace BirthdayBot.TextCommands;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Commands for listing upcoming and all birthdays.
|
/// Commands for listing upcoming and all birthdays.
|
|
@ -2,7 +2,7 @@
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace BirthdayBot.UserInterface;
|
namespace BirthdayBot.TextCommands;
|
||||||
|
|
||||||
internal class ManagerCommands : CommandsCommon {
|
internal class ManagerCommands : CommandsCommon {
|
||||||
private static readonly string ConfErrorPostfix =
|
private static readonly string ConfErrorPostfix =
|
|
@ -1,7 +1,7 @@
|
||||||
using BirthdayBot.Data;
|
using BirthdayBot.Data;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace BirthdayBot.UserInterface;
|
namespace BirthdayBot.TextCommands;
|
||||||
|
|
||||||
internal class UserCommands : CommandsCommon {
|
internal class UserCommands : CommandsCommon {
|
||||||
public UserCommands(Configuration db) : base(db) { }
|
public UserCommands(Configuration db) : base(db) { }
|
Loading…
Reference in a new issue