forked from krakerag/ircBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.php
executable file
·46 lines (38 loc) · 1.45 KB
/
init.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
#!/usr/bin/php
<?php
/**
* IRC trivia bot
* Matthew Hallsworth <[email protected]>
* PHP5.x required
*
* Based on http://www.irchelp.org/irchelp/rfc/rfc2812.txt for connection
*
* Setup your configuration in the variables below
* ----------------------------------------------------------------------------
*/
$config = array(
'server' => "irc.lolliebag.com", # IRC server to connect to
'serverPassword' => "", # Server password if required (default is blank)
'serverPort' => "6667", # Port to connect to (default is 6667)
'destinationChannel' => "#tempest", # Channel for bot to connect to
'username' => "bot", # Username for the bot to have
'realname' => "bot", # Realname for bot to have (IRC RFC2812 3.1.3)
'timeout' => 15, # Timeout in seconds for initializing connection
'logging' => 2, # 2 = all messages, 1 = only commands etc.
'modules' => array( # List of modules to load
'parrot','math',
)
);
# Add full hostmasks here to add admins.
# ie. [email protected]
$adminList = array(
);
/**
* ----------------------------------------------------------------------------
* No need to edit below this line
* ----------------------------------------------------------------------------
*/
include_once("class.ircBot.php");
set_time_limit(0); # Continual script setting for commandline execution
$bot = new ircBot($config, $adminList);