Second Pust, Big Change

This commit is contained in:
Denny Dai
2015-05-30 00:20:55 +08:00
parent 3667e84a00
commit 9ab379e3c2
15 changed files with 346 additions and 122 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
function escapeString($var){
return '"' . addslashes($var) . '"';
}
function escapePeer($peer){
return str_replace(' ', '_', $peer);
}
function PluginList($commands, $name){
global $plugins;
$plugins[] .= TAG.$commands." ".$name;
}
function init_bot($var){
global $BOT;
require('classes/'.$var.'/Base.php');
$classname = 'DBot\\'.$var.'\Base';
$BOT = new $classname('unix:///tmp/'.$var.'.sck');
}