D-Bot/plugins/help.php

16 lines
499 B
PHP
Raw Normal View History

2015-05-29 11:20:55 -05:00
<?php
2015-06-30 15:35:29 -05:00
foreach ($TAGs as $TAG) {
2016-05-12 05:20:21 -05:00
if (preg_match("/^(".preg_quote($TAG, '/')."help|".preg_quote($TAG, '/')."help".preg_quote('@').BOT_NAME.")$/", $text)) {
2015-06-30 15:35:29 -05:00
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);
2015-06-30 02:05:22 -05:00
}
2015-05-29 11:20:55 -05:00
}