This commit is contained in:
Madpeter 2025-09-17 20:57:23 +01:00
parent 3a29bdf748
commit dc9310e5ff

View file

@ -268,8 +268,12 @@ namespace SecondBotEvents.Services
{ {
GetClient().Self.InstantMessage(OutputAvatar, output); GetClient().Self.InstantMessage(OutputAvatar, output);
} }
if(myConfig.GetOutputHttpURL() != null) if(SecondbotHelpers.isempty(myConfig.GetOutputHttpURL()) == false)
{ {
if(myConfig.GetOutputHttpURL().StartsWith("http") == false)
{
return;
}
long unixtime = SecondbotHelpers.UnixTimeNow(); long unixtime = SecondbotHelpers.UnixTimeNow();
string token = SecondbotHelpers.GetSHA1(unixtime.ToString() + "EventService" + GetClient().Self.AgentID + output + master.CommandsService.myConfig.GetSharedSecret()); string token = SecondbotHelpers.GetSHA1(unixtime.ToString() + "EventService" + GetClient().Self.AgentID + output + master.CommandsService.myConfig.GetSharedSecret());
var client = new RestClient(myConfig.GetOutputHttpURL()); var client = new RestClient(myConfig.GetOutputHttpURL());