2015-05-29 11:20:55 -05:00
|
|
|
<?php
|
2015-06-30 09:44:40 -05:00
|
|
|
if (preg_match("/^(".preg_quote(TAG, '/')."help)|(".preg_quote(TAG, '/').$plugin_name.preg_quote('@').BOT_NAME.")$/", $text)) {
|
2015-06-30 02:05:22 -05: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 04:30:05 -05:00
|
|
|
$plugin_list = HELP_BEGIN."\n";
|
2015-05-29 11:20:55 -05:00
|
|
|
foreach ($plugins as $value) {
|
|
|
|
$plugin_list .= "\n".$value;
|
|
|
|
}
|
2015-05-31 04:30:05 -05:00
|
|
|
$plugin_list .= "\n\n".HELP_END;
|
2015-06-26 00:59:37 -05:00
|
|
|
$BOT->msg($from, $plugin_list);
|
2015-05-29 11:20:55 -05:00
|
|
|
}
|