BLOCK:HttpRequest
url = "http://exemple.com:8689/token.php"
TYPE:STANDARD
$""
"application/x-www-form-urlencoded"
ENDBLOCK
string STATUSNAME = "";
IF STRINGKEY @data.RESPONSECODE DoesNotContain "200"
data.SOURCE = $"SERVER DOWN OR SOMETHING LIKE THAT \\n<b>RESPONSECODE:</b> {data.RESPONSECODE}";
JUMP #TELEGRAM
END
IF STRINGKEY @data.RESPONSECODE Contains "200"
IF STRINGKEY @data.SOURCE DoesNotMatchRegex "\b(Ok)\b"
STATUSNAME = "NEW IP DETECTED 😎";
LOG @STATUSNAME
#TELEGRAM
BLOCK:HttpRequest
url = "https://api.telegram.org/[HIDDENINFO]/sendMessage"
TYPE:STANDARD
$"chat_id=958084223&parse_mode=html&text=%3Cb%3E<STATUSNAME>%3C/b%3E: \\n<data.SOURCE>"
"application/x-www-form-urlencoded"
ENDBLOCK
END
END
BLOCK:HttpRequest
url = "http://exemple.com:8689/token.php"
TYPE:STANDARD
$""
"application/x-www-form-urlencoded"
ENDBLOCK
string STATUSNAME = "";
IF STRINGKEY @data.RESPONSECODE DoesNotContain "200"
data.SOURCE = $"SERVER DOWN OR SOMETHING LIKE THAT \\n<b>RESPONSECODE:</b> {data.RESPONSECODE}";
JUMP #TELEGRAM
END
IF STRINGKEY @data.RESPONSECODE Contains "200"
IF STRINGKEY @data.SOURCE DoesNotMatchRegex "\b(Ok)\b"
STATUSNAME = "NEW IP DETECTED 😎";
LOG @STATUSNAME
END
END
#TELEGRAM
BLOCK:HttpRequest
url = "https://api.telegram.org/[HIDDENINFO]/sendMessage"
TYPE:STANDARD
$"chat_id=958084223&parse_mode=html&text=%3Cb%3E<STATUSNAME>%3C/b%3E: \\n<data.SOURCE>"
"application/x-www-form-urlencoded"
ENDBLOCK