D-Bot/BOT.php

24 lines
658 B
PHP
Raw Normal View History

2015-05-29 11:20:55 -05:00
<?php
//init
2015-06-26 00:37:54 -05:00
require_once('config.php');
require_once('functions.php');
$plugins = [];
require(PATH.'classes'.DIRECTORY_SEPARATOR.TYPE.DIRECTORY_SEPARATOR.'Base.php');
$BOT = new DBot\Base('unix:///tmp/tg.sck');
require_once(PATH.'classes'.DIRECTORY_SEPARATOR.TYPE.DIRECTORY_SEPARATOR.'init.php');
//load plugins
$load_plugins = glob(PATH.'plugins'.DIRECTORY_SEPARATOR.'*.php');
foreach ($load_plugins as $key => $value) {
if ($value == PATH.'plugins'.DIRECTORY_SEPARATOR.'help.php') {
unset($load_plugins[$key]);
}
}
foreach ($load_plugins as $value) {
require_once $value;
}
require_once PATH.'plugins'.DIRECTORY_SEPARATOR.'help.php';
2015-05-29 11:20:55 -05:00
?>