fix ? entrys for command history sources
This commit is contained in:
parent
8812910509
commit
6def5f65cf
4 changed files with 6 additions and 6 deletions
|
|
@ -225,7 +225,7 @@ namespace SecondBotEvents.Services
|
||||||
{
|
{
|
||||||
return new KeyValuePair<bool, string>(false, "Not accepted via signing");
|
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;
|
return reply;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -336,7 +336,7 @@ namespace SecondBotEvents.Services
|
||||||
return new KeyValuePair<bool, string>(false, e.Message);
|
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)
|
if(acceptNewCommands == false)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -392,7 +392,7 @@ namespace SecondBotEvents.Services
|
||||||
|
|
||||||
protected void RunCommandFromMessage(SignedCommand C, SocketMessage message)
|
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 = "✅";
|
string replyEmote = "✅";
|
||||||
if (reply.Key == false)
|
if (reply.Key == false)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -339,7 +339,7 @@ namespace SecondBotEvents.Services
|
||||||
{
|
{
|
||||||
return "Command request rejected";
|
return "Command request rejected";
|
||||||
}
|
}
|
||||||
return JsonConvert.SerializeObject(master.CommandsService.RunCommand(C));
|
return JsonConvert.SerializeObject(master.CommandsService.RunCommand("HTTP",C));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -524,7 +524,7 @@ namespace SecondBotEvents.Services
|
||||||
}
|
}
|
||||||
string[] args = { sitTarget.ToString() };
|
string[] args = { sitTarget.ToString() };
|
||||||
SignedCommand C = new SignedCommand(master.CommandsService, "rlv", "Sit", null, args, 0, "", false, 0, "", false);
|
SignedCommand C = new SignedCommand(master.CommandsService, "rlv", "Sit", null, args, 0, "", false, 0, "", false);
|
||||||
master.CommandsService.RunCommand(C);
|
master.CommandsService.RunCommand("RLV",C);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -533,7 +533,7 @@ namespace SecondBotEvents.Services
|
||||||
{
|
{
|
||||||
// stand
|
// stand
|
||||||
SignedCommand C = new SignedCommand(master.CommandsService, "rlv", "Stand", null, new string[] { }, 0, "", false, 0, "", false);
|
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;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue