Add /help
This commit is contained in:
		| @@ -15,3 +15,4 @@ do - do <your question> | |||||||
| does - does <your question> | does - does <your question> | ||||||
| did - did <your question> | did - did <your question> | ||||||
| should - should <your question> | should - should <your question> | ||||||
|  | help - Need help? Go here | ||||||
|   | |||||||
| @@ -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.'); |   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('<a href="https://t.me/quadnite/9">Help Page</a>'); | ||||||
|  | } | ||||||
|  |  | ||||||
| // Get JSON from post, store it and decode it. | // Get JSON from post, store it and decode it. | ||||||
| $var = file_get_contents('php://input'); | $var = file_get_contents('php://input'); | ||||||
| $json = fopen('json', "w"); | $json = fopen('json', "w"); | ||||||
| @@ -330,6 +334,10 @@ $modules = array( | |||||||
|   array( |   array( | ||||||
|     "command" => "/json", |     "command" => "/json", | ||||||
|     "function" => "json();" |     "function" => "json();" | ||||||
|  |   ), | ||||||
|  |   array( | ||||||
|  |     "command" => "/help", | ||||||
|  |     "function" => "help();" | ||||||
|   ) |   ) | ||||||
| ); | ); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user