Updated ICommandAction.cs and DBEvent.cs. Removed thread request from DBEvent and added special thread request to ICommandAction.cs
This commit is contained in:
@@ -24,6 +24,8 @@ namespace DiscordBot.Bot.Actions
|
||||
];
|
||||
|
||||
public InternalActionRunType RunType => InternalActionRunType.OnCall;
|
||||
|
||||
public bool RequireOtherThread => false;
|
||||
|
||||
public async Task Execute(string[] args)
|
||||
{
|
||||
|
||||
@@ -16,6 +16,8 @@ public class Clear: ICommandAction
|
||||
public IEnumerable<InternalActionOption> ListOfOptions => [];
|
||||
|
||||
public InternalActionRunType RunType => InternalActionRunType.OnCall;
|
||||
|
||||
public bool RequireOtherThread => false;
|
||||
|
||||
public Task Execute(string[] args)
|
||||
{
|
||||
|
||||
@@ -19,6 +19,8 @@ public class Exit: ICommandAction
|
||||
new InternalActionOption("force | -f", "Exits the bot without saving the config")
|
||||
};
|
||||
public InternalActionRunType RunType => InternalActionRunType.OnCall;
|
||||
|
||||
public bool RequireOtherThread => false;
|
||||
|
||||
public async Task Execute(string[] args)
|
||||
{
|
||||
|
||||
@@ -26,6 +26,8 @@ public class Help: ICommandAction
|
||||
];
|
||||
|
||||
public InternalActionRunType RunType => InternalActionRunType.OnCall;
|
||||
|
||||
public bool RequireOtherThread => false;
|
||||
|
||||
public async Task Execute(string[] args)
|
||||
{
|
||||
|
||||
@@ -19,6 +19,8 @@ namespace DiscordBot.Bot.Actions
|
||||
public IEnumerable<InternalActionOption> ListOfOptions => [];
|
||||
|
||||
public InternalActionRunType RunType => InternalActionRunType.OnCall;
|
||||
|
||||
public bool RequireOtherThread => false;
|
||||
|
||||
public Task Execute(string[] args)
|
||||
{
|
||||
|
||||
@@ -39,6 +39,8 @@ public class Plugin: ICommandAction
|
||||
};
|
||||
|
||||
public InternalActionRunType RunType => InternalActionRunType.OnCall;
|
||||
|
||||
public bool RequireOtherThread => false;
|
||||
|
||||
public async Task Execute(string[] args)
|
||||
{
|
||||
|
||||
@@ -22,6 +22,9 @@ public class SettingsConfig: ICommandAction
|
||||
new InternalActionOption("add", "Add a setting")
|
||||
};
|
||||
public InternalActionRunType RunType => InternalActionRunType.OnCall;
|
||||
|
||||
public bool RequireOtherThread => false;
|
||||
|
||||
public Task Execute(string[] args)
|
||||
{
|
||||
if (args is null)
|
||||
|
||||
Reference in New Issue
Block a user