From 67cf9a6b6189ce8ae195650676cd427ba3535a02 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Mon, 23 Jul 2018 23:28:50 +0530 Subject: [PATCH] Add /help --- command_list.txt | 1 + webhook.php | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/command_list.txt b/command_list.txt index 0701c05..9577d4c 100644 --- a/command_list.txt +++ b/command_list.txt @@ -15,3 +15,4 @@ do - do does - does did - did should - should +help - Need help? Go here diff --git a/webhook.php b/webhook.php index 938fcb0..19c123f 100644 --- a/webhook.php +++ b/webhook.php @@ -244,6 +244,10 @@ 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.'); } +function help() { + send_html('Help Page'); +} + // Get JSON from post, store it and decode it. $var = file_get_contents('php://input'); $json = fopen('json', "w"); @@ -330,6 +334,10 @@ $modules = array( array( "command" => "/json", "function" => "json();" + ), + array( + "command" => "/help", + "function" => "help();" ) );