Change lua to python.

easiler to use
This commit is contained in:
Denny Dai
2015-06-04 16:15:34 +08:00
parent 5c511bbe58
commit ad22866d0c
4 changed files with 26 additions and 17 deletions
+15 -1
View File
@@ -4,7 +4,21 @@ require_once('config.inc.php');
require_once('functions.php');
$plugins = [];
$from = $_GET['from']
if($_GET['from'] != escapePeer(BOT_NAME)){
//is group?
if ($_GET['to'] == escapePeer(BOT_NAME)) {
$isgroup = false;
}else{
$isgroup = true;
}
//reply to...
if ($isgroup) {
$from = $_GET['to'];
}else{
$from = $_GET['from'];
$BOT->exec("msg ".escapePeer(OWNER_NAME)." ".json_encode($_GET));
}
//load plugins
$load_plugins = glob(dirname(__FILE__).DIRECTORY_SEPARATOR.'plugins'.DIRECTORY_SEPARATOR.'*.php');