D-Bot/plugins/help.php
2015-06-30 15:05:22 +08:00

14 lines
397 B
PHP

<?php
if (preg_match("/^".preg_quote(TAG, '/')."help$/", $text)) {
foreach ($load_plugins as $value) {
$plugin_name = substr($value, strlen(PATH.'plugins'.DIRECTORY_SEPARATOR), -4);
$lines=file($value);
eval($lines[1]);
}
$plugin_list = HELP_BEGIN."\n";
foreach ($plugins as $value) {
$plugin_list .= "\n".$value;
}
$plugin_list .= "\n\n".HELP_END;
$BOT->msg($from, $plugin_list);
}