-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathstartIzyBot.php
executable file
·41 lines (29 loc) · 1015 Bytes
/
startIzyBot.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace IZYBOT;
set_time_limit(0);
define('APPPATH', dirname(__FILE__));
define('ERROR', 1);
define('INFO', 2);
define('DEBUG', 3);
require_once(APPPATH . '/vendor/autoload.php');
require_once(APPPATH . '/conf/config.php');
require_once(APPPATH . '/conf/channel_credentials.php');
require_once(APPPATH . '/lib/Common.php');
require_once(APPPATH . '/lib/Logger.php');
require_once(APPPATH . '/lib/IzyBot.php');
require_once(APPPATH . '/lib/AppDataHandler.php');
// require any potential plugins that reside on plugins folder:
foreach (glob(APPPATH . '/plugins/*.php') as $plugin)
{
require_once $plugin;
}
//-----------------------------------------------
//-----------------------------------------------
//-----------------------------------------------
use IZYBOT\lib\IzyBot as IZYBOT;
//-----------------------------------------------
date_default_timezone_set($config['timezone']);
$twitch_bot = new IZYBOT($config);
$twitch_bot->start_bot()
->main()
->stop_bot();