mirror of
https://gitlab.com/ceda_ei/Quadnite-Bot
synced 2025-11-05 03:30:06 +01:00
Compare commits
4 Commits
0043c8ab02
...
1144e0b217
| Author | SHA1 | Date | |
|---|---|---|---|
| 1144e0b217 | |||
| 522c0184a5 | |||
| 17719e6f04 | |||
| 93ed944141 |
11
webhook.php
11
webhook.php
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
# vim: set tabstop=2 shiftwidth=2 expandtab:
|
||||||
$bot_name = "quadnite_bot";
|
$bot_name = "quadnite_bot";
|
||||||
$bot_api = require('api_key.php');
|
$bot_api = require('api_key.php');
|
||||||
|
|
||||||
@@ -355,7 +356,11 @@ function rate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function help() {
|
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.
|
// Get JSON from post, store it and decode it.
|
||||||
@@ -457,6 +462,10 @@ $modules = array(
|
|||||||
array(
|
array(
|
||||||
"command" => "/rate",
|
"command" => "/rate",
|
||||||
"function" => "rate();"
|
"function" => "rate();"
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
"command" => "/commands",
|
||||||
|
"function" => "commands();"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user