commit | author | age
|
779694
|
1 |
<?php |
JK |
2 |
class bot_synonimy_init implements BotModuleInit { |
|
3 |
function register() { |
|
4 |
$handler = array( |
|
5 |
array( |
|
6 |
'file' => 'handler.php', |
|
7 |
'class' => 'bot_synonimy_module', |
|
8 |
'method' => 'handle', |
|
9 |
) |
|
10 |
); |
|
11 |
|
|
12 |
return array( |
|
13 |
'synonimy' => $handler, |
|
14 |
'synonim' => $handler, |
|
15 |
'syn' => $handler, |
|
16 |
's' => $handler, |
|
17 |
); |
|
18 |
} |
|
19 |
|
|
20 |
function help($params = NULL) { |
|
21 |
if($params === NULL) { |
|
22 |
return new BotMsg('<b>synonimy</b> <i>słowo</i><br />'."\n" |
|
23 |
. ' Synonimy słowa <i>słowo</i>.<br />'."\n"); |
|
24 |
} |
|
25 |
else |
|
26 |
{ |
|
27 |
return new BotMsg('<b>synonimy</b> <i>słowo</i> (aliasy: <b>s, syn, synonim</b>)<br />'."\n" |
|
28 |
. ' Podaje synonimy słowa <i>słowo</i> (w mianowniku liczby pojedynczej).<br />'."\n" |
|
29 |
. '<br />'."\n" |
0e0018
|
30 |
. '<u>Przykłady:</u><br />'."\n" |
779694
|
31 |
. 'synonimy abecadło<br />'."\n" |
JK |
32 |
. 'synonimy wyspa'); |
|
33 |
} |
|
34 |
} |
|
35 |
} |
|
36 |
|
|
37 |
return 'bot_synonimy_init'; |
|
38 |
?> |