Add /help

This commit is contained in:
Ceda EI 2018-07-23 23:28:50 +05:30
parent c1b5c73859
commit 67cf9a6b61
2 changed files with 9 additions and 0 deletions

View File

@ -15,3 +15,4 @@ do - do <your question>
does - does <your question>
did - did <your question>
should - should <your question>
help - Need help? Go here

View File

@ -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('<a href="https://t.me/quadnite/9">Help Page</a>');
}
// 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();"
)
);