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();" ) );