fix ? entrys for command history sources

This commit is contained in:
Madpeter 2025-02-04 02:02:07 +00:00
parent 8812910509
commit 6def5f65cf
4 changed files with 6 additions and 6 deletions

View file

@ -225,7 +225,7 @@ namespace SecondBotEvents.Services
{
return new KeyValuePair<bool, string>(false, "Not accepted via signing");
}
KeyValuePair<bool, string> reply = RunCommand(C, viaCustomCommand, source);
KeyValuePair<bool, string> reply = RunCommand(source, C, viaCustomCommand);
return reply;
}
@ -336,7 +336,7 @@ namespace SecondBotEvents.Services
return new KeyValuePair<bool, string>(false, e.Message);
}
}
public KeyValuePair<bool, string> RunCommand(SignedCommand C, bool inCustomCommand=false, string source="?")
public KeyValuePair<bool, string> RunCommand(string source, SignedCommand C, bool inCustomCommand=false)
{
if(acceptNewCommands == false)
{

View file

@ -392,7 +392,7 @@ namespace SecondBotEvents.Services
protected void RunCommandFromMessage(SignedCommand C, SocketMessage message)
{
KeyValuePair<bool, string> reply = master.CommandsService.RunCommand(C);
KeyValuePair<bool, string> reply = master.CommandsService.RunCommand("Discord",C);
string replyEmote = "✅";
if (reply.Key == false)
{

View file

@ -339,7 +339,7 @@ namespace SecondBotEvents.Services
{
return "Command request rejected";
}
return JsonConvert.SerializeObject(master.CommandsService.RunCommand(C));
return JsonConvert.SerializeObject(master.CommandsService.RunCommand("HTTP",C));
}
}
}

View file

@ -524,7 +524,7 @@ namespace SecondBotEvents.Services
}
string[] args = { sitTarget.ToString() };
SignedCommand C = new SignedCommand(master.CommandsService, "rlv", "Sit", null, args, 0, "", false, 0, "", false);
master.CommandsService.RunCommand(C);
master.CommandsService.RunCommand("RLV",C);
}
break;
@ -533,7 +533,7 @@ namespace SecondBotEvents.Services
{
// stand
SignedCommand C = new SignedCommand(master.CommandsService, "rlv", "Stand", null, new string[] { }, 0, "", false, 0, "", false);
master.CommandsService.RunCommand(C);
master.CommandsService.RunCommand("RLV", C);
}
break;