tidy up
This commit is contained in:
parent
3a29bdf748
commit
dc9310e5ff
1 changed files with 5 additions and 1 deletions
|
|
@ -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());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue