2015-05-30 00:20:55 +08:00
|
|
|
<?php
|
2015-06-30 22:44:40 +08:00
|
|
|
if (preg_match("/^(".preg_quote(TAG, '/')."help)|(".preg_quote(TAG, '/').$plugin_name.preg_quote('@').BOT_NAME.")$/", $text)) {
|
2015-06-30 15:05:22 +08:00
|
|
|
foreach ($load_plugins as $value) {
|
|
|
|
$plugin_name = substr($value, strlen(PATH.'plugins'.DIRECTORY_SEPARATOR), -4);
|
|
|
|
$lines=file($value);
|
|
|
|
eval($lines[1]);
|
|
|
|
}
|
2015-05-31 17:30:05 +08:00
|
|
|
$plugin_list = HELP_BEGIN."\n";
|
2015-05-30 00:20:55 +08:00
|
|
|
foreach ($plugins as $value) {
|
|
|
|
$plugin_list .= "\n".$value;
|
|
|
|
}
|
2015-05-31 17:30:05 +08:00
|
|
|
$plugin_list .= "\n\n".HELP_END;
|
2015-06-26 13:59:37 +08:00
|
|
|
$BOT->msg($from, $plugin_list);
|
2015-05-30 00:20:55 +08:00
|
|
|
}
|