Change Help commands

telegram.py is developing, cannot be use yet, plzz ignore it
This commit is contained in:
Denny Dai
2015-05-31 17:30:05 +08:00
parent 1cc087643e
commit 5c511bbe58
4 changed files with 16 additions and 16 deletions
+1 -15
View File
@@ -4,21 +4,7 @@ require_once('config.inc.php');
require_once('functions.php');
$plugins = [];
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));
}
$from = $_GET['from']
//load plugins
$load_plugins = glob(dirname(__FILE__).DIRECTORY_SEPARATOR.'plugins'.DIRECTORY_SEPARATOR.'*.php');