-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBotCore.php
executable file
·71 lines (51 loc) · 1.73 KB
/
BotCore.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
error_reporting(E_ALL); // alle error`s laten zien
set_time_limit(0); // neem alle tijd
ob_implicit_flush(); // Voor Connectie stabiliteit
define('cmd' , 'commands/');
define('sys' , 'system/' );
define('init', 'core/' );
define('sock', 'socket/' );
define('mod' , 'modules/' );
include init . 'TimeFunctions.php';
include 'config.php';
include init . 'IsAdmin.php';
include init . 'CheckSocket.php';
echo "starting bot...\n" . "connecting to: " . $server . "\n" . "port: " . $port . "\n" . "nick: " . $nick . "\n" . "chans: " . $chans . "\n";
include sock . 'Socket.php';
while(1) {
include sock . 'PingPong.php';
$data = fgets($socket, 128); //Retrive Data.
include sock . 'DebugFunction.php';
flush(); //Handle Stablility.
// loading CORE FUNCTIONS
include init . 'DataConverter.php'; //NEED TO BE LOADED FIRST!
include init . 'PingPong.php';
if(isset($ex[1])) //Handle Special Server Raw's
{
include init . 'JoinChannels.php';
include init . 'OnError.php';
include init . 'ProtectedNickChange.php';
}
// CORE FUNCTIONS
include init . "Command.php";
include init . "OnJoin.php";
include init . "ThrottleProtection.php";
// SYSTEM COMMANDS
include sys . "dood.php";
include sys . "join.php";
include sys . "nick.php";
include sys . "part.php";
include sys . "version.php";
include sys . "eval.php";
include sys . "raw.php";
// REGULAR COMMANDS
include cmd . "google.php";
include cmd . "admins.php";
include cmd . "zeg.php";
include cmd . "rss.php";
include cmd . "html.php";
//include cmd . "Twitter.php"; #TWITTER HAS CHANGED THEIR API, THIS IS NOW UN_SUPPORTED! SORRY, WORKING ON FIX.
include cmd . "CostumCommands.php";
}
?>