From dc38a233ef1d65aed5a1c20965ba5924f09a7fd9 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sun, 27 May 2018 15:57:43 +0530 Subject: [PATCH] Send back recieved JSON --- webhook.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webhook.php b/webhook.php index 095b5d7..2e665d5 100644 --- a/webhook.php +++ b/webhook.php @@ -231,6 +231,11 @@ function kys() { } } +// Sends back JSON +function json() { + global $var; + send_text($var); +} // Start Message function start() { send_text('Hi, I am Quadnite. If you are chatting with me in private, you are most likely doing it wrong. Add me to a group for fun. Do not promote me to an admin or I WILL hate you.'); @@ -318,6 +323,10 @@ $modules = array( array( "command" => "/kys", "function" => "kys();" + ), + array( + "command" => "/json", + "function" => "json();" ) );