commit | author | age
|
332344
|
1 |
<?php |
JK |
2 |
class bot_wersja_init implements BotModuleInit { |
|
3 |
function register() { |
|
4 |
$handler = array( |
|
5 |
array( |
|
6 |
'file' => 'handler.php', |
|
7 |
'class' => 'bot_wersja_module', |
|
8 |
'method' => 'handle', |
|
9 |
) |
|
10 |
); |
|
11 |
|
|
12 |
return array( |
|
13 |
'version' => $handler, |
|
14 |
'wersja' => $handler, |
|
15 |
'wersia' => $handler, |
|
16 |
'v' => $handler, |
|
17 |
); |
|
18 |
} |
|
19 |
|
|
20 |
function help($params = NULL) { |
|
21 |
if($params === NULL) { |
|
22 |
return new BotMsg('<b>wersja</b><br />'."\n" |
|
23 |
. ' Wersja bota.<br />'."\n"); |
|
24 |
} |
|
25 |
else |
|
26 |
{ |
|
27 |
return new BotMsg('<b>wersja</b> (aliasy: <b>v, version</b>)<br />'."\n" |
|
28 |
. ' Zwraca wersję bota.'); |
|
29 |
} |
|
30 |
} |
|
31 |
} |
|
32 |
|
|
33 |
return 'bot_wersja_init'; |
|
34 |
?> |