Compare commits

..

4 Commits

Author SHA1 Message Date
Ceda EI 1144e0b217 Add /commands to help 2019-01-06 01:45:02 +05:30
Ceda EI 522c0184a5 Add missing semicolon 2019-01-06 01:30:26 +05:30
Ceda EI 17719e6f04 Add /commands 2019-01-06 01:27:09 +05:30
Ceda EI 93ed944141 Fix indentation. Add vim modeline. 2019-01-05 23:32:43 +05:30
1 changed files with 24 additions and 15 deletions

View File

@ -1,4 +1,5 @@
<?php
# vim: set tabstop=2 shiftwidth=2 expandtab:
$bot_name = "quadnite_bot";
$bot_api = require('api_key.php');
@ -355,7 +356,11 @@ function rate() {
}
function help() {
send_html('<a href="https://t.me/quadnite/9">Help Page</a>');
send_html('You can either check /commands for a short overview or check the <a href="https://t.me/quadnite/9">Help Page</a>.');
}
function commands() {
send_text(file_get_contents('command_list.txt'));
}
// Get JSON from post, store it and decode it.
@ -457,6 +462,10 @@ $modules = array(
array(
"command" => "/rate",
"function" => "rate();"
),
array(
"command" => "/commands",
"function" => "commands();"
)
);