Change Help commands

telegram.py is developing, cannot be use yet, plzz ignore it
This commit is contained in:
Denny Dai
2015-05-31 17:30:05 +08:00
parent 1cc087643e
commit 5c511bbe58
4 changed files with 16 additions and 16 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
<?php
PluginList("help", "Ask for help");
if (preg_match("/^".TAG."help$/", $_GET['text'])) {
$plugin_list = "Welcome to use TG-BOT From Dennx.com";
$plugin_list = HELP_BEGIN."\n";
foreach ($plugins as $value) {
$plugin_list .= "\n".$value;
}
$plugin_list .= "\n\n".HELP_END;
$BOT->exec("msg ".$from." ".escapeString($plugin_list));
}