commit | author | age
|
332344
|
1 |
<?php |
JK |
2 |
class bot_czesc_init implements BotModuleInit { |
|
3 |
function register() { |
|
4 |
$handler_czesc = array( |
|
5 |
array( |
|
6 |
'file' => 'handler.php', |
|
7 |
'class' => 'bot_czesc_module', |
|
8 |
'method' => 'czesc', |
|
9 |
) |
|
10 |
); |
|
11 |
$handler_hello = array( |
|
12 |
array( |
|
13 |
'file' => 'handler.php', |
|
14 |
'class' => 'bot_czesc_module', |
|
15 |
'method' => 'hello', |
|
16 |
) |
|
17 |
); |
|
18 |
$handler_zachcianki = array( |
|
19 |
array( |
|
20 |
'file' => 'handler.php', |
|
21 |
'class' => 'bot_czesc_module', |
|
22 |
'method' => 'zachcianki', |
|
23 |
) |
|
24 |
); |
|
25 |
$handler_kocham = array( |
|
26 |
array( |
|
27 |
'file' => 'handler.php', |
|
28 |
'class' => 'bot_czesc_module', |
|
29 |
'method' => 'kocham', |
|
30 |
) |
|
31 |
); |
|
32 |
$handler_odp = array( |
|
33 |
array( |
|
34 |
'file' => 'handler.php', |
|
35 |
'class' => 'bot_czesc_module', |
|
36 |
'method' => 'odp', |
|
37 |
) |
|
38 |
); |
|
39 |
|
|
40 |
return array( |
|
41 |
'czesc' => $handler_czesc, |
|
42 |
'witaj' => $handler_czesc, |
|
43 |
'witam' => $handler_czesc, |
|
44 |
'siema' => $handler_czesc, |
|
45 |
'hej' => $handler_czesc, |
|
46 |
'heeej' => $handler_czesc, |
|
47 |
'elo' => $handler_czesc, |
|
48 |
'haj' => $handler_czesc, |
|
49 |
'test' => $handler_czesc, |
|
50 |
'good' => $handler_hello, |
|
51 |
'hello' => $handler_hello, |
|
52 |
'hi' => $handler_hello, |
|
53 |
'sex' => $handler_zachcianki, |
|
54 |
'fiut' => $handler_zachcianki, |
|
55 |
'chuj' => $handler_zachcianki, |
|
56 |
'huj' => $handler_zachcianki, |
|
57 |
'seks' => $handler_zachcianki, |
|
58 |
'seksu' => $handler_zachcianki, |
|
59 |
'porno' => $handler_zachcianki, |
|
60 |
'ssij' => $handler_zachcianki, |
|
61 |
'obciagniesz' => $handler_zachcianki, |
|
62 |
'wal' => $handler_zachcianki, |
|
63 |
'kocham' => $handler_kocham, |
|
64 |
'lubie' => $handler_kocham, |
|
65 |
'dzieki' => $handler_kocham, |
|
66 |
'dziekuje' => $handler_kocham, |
|
67 |
'lol' => $handler_odp, |
|
68 |
'do' => $handler_odp, |
|
69 |
); |
|
70 |
} |
|
71 |
|
|
72 |
function help($params = NULL) { |
|
73 |
if($params === NULL) { |
|
74 |
return new BotMsg('<b>czesc</b><br />'."\n" |
|
75 |
. ' Odpowiada na przywitanie.<br />'."\n"); |
|
76 |
} |
|
77 |
else |
|
78 |
{ |
|
79 |
return new BotMsg('<b>czesc</b> (aliasy: <b>witam, witaj, hej</b>)<br />'."\n" |
|
80 |
. ' Bot przedstawia siÄ™ i odpowiada na przywitanie.'); |
|
81 |
} |
|
82 |
} |
|
83 |
} |
|
84 |
|
|
85 |
return 'bot_czesc_init'; |
|
86 |
?> |