D-Bot/plugins/help.php
Denny Dai 5c511bbe58 Change Help commands
telegram.py is developing, cannot be use yet, plzz ignore it
2015-05-31 17:30:05 +08:00

10 lines
286 B
PHP

<?php
PluginList("help", "Ask for help");
if (preg_match("/^".TAG."help$/", $_GET['text'])) {
$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));
}