Misc style and other minor changes
This commit is contained in:
parent
b03905afda
commit
dfec87672f
3 changed files with 4 additions and 12 deletions
|
@ -4,7 +4,6 @@ using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace RegexBot;
|
namespace RegexBot;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains essential instance configuration for this bot including Discord connection settings, service configuration,
|
/// Contains essential instance configuration for this bot including Discord connection settings, service configuration,
|
||||||
/// and command-line options.
|
/// and command-line options.
|
||||||
|
@ -67,17 +66,10 @@ class InstanceConfig {
|
||||||
return default;
|
return default;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Command line options
|
|
||||||
/// </summary>
|
|
||||||
class CommandLineParameters {
|
class CommandLineParameters {
|
||||||
[Option('c', "config", Default = null,
|
[Option('c', "config", Default = null)]
|
||||||
HelpText = "Custom path to instance configuration. Defaults to instance.json in bot directory.")]
|
public string? ConfigFile { get; set; } = null!;
|
||||||
public string ConfigFile { get; set; } = null!;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Command line arguments parsed here. Depending on inputs, the program can exit here.
|
|
||||||
/// </summary>
|
|
||||||
public static CommandLineParameters? Parse(string[] args) {
|
public static CommandLineParameters? Parse(string[] args) {
|
||||||
CommandLineParameters? result = null;
|
CommandLineParameters? result = null;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#pragma warning disable CA1822 // "Mark members as static" - will not make static to encourage better structure
|
#pragma warning disable CA1822 // "Mark members as static" - members should only be callable by code with access to this instance
|
||||||
using Discord.Net;
|
using Discord.Net;
|
||||||
|
|
||||||
namespace RegexBot.Services.CommonFunctions;
|
namespace RegexBot.Services.CommonFunctions;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#pragma warning disable CA1822 // "Mark members as static" - will not make static to encourage better structure
|
#pragma warning disable CA1822 // "Mark members as static" - members should only be callable by code with access to this instance
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using RegexBot.Common;
|
using RegexBot.Common;
|
||||||
using RegexBot.Data;
|
using RegexBot.Data;
|
||||||
|
|
Loading…
Reference in a new issue