commit | author | age
|
8bd4d9
|
1 |
<?php |
JK |
2 |
class version implements module { |
|
3 |
static function register_cmd() { |
|
4 |
return array( |
|
5 |
'version' => 'cmd_version', |
|
6 |
'wersja' => 'cmd_version', |
|
7 |
'wersia' => 'cmd_version', |
|
8 |
'v' => 'cmd_version', |
|
9 |
); |
|
10 |
} |
|
11 |
|
|
12 |
static function cmd_version($name, $args) { |
|
13 |
GGapi::putImage('./data/version/jacekk.png'); |
|
14 |
GGapi::putRichText("\n".'Bot Gadu-Gadu', TRUE, FALSE, FALSE, 255, 108, 0); |
|
15 |
GGapi::putRichText(' wersja '.main::VERSION."\n".'http://jacekk.info/botgg'); |
|
16 |
} |
|
17 |
|
|
18 |
static function help($cmd = NULL) { |
|
19 |
if($cmd === NULL) { |
|
20 |
GGapi::putRichText('wersja', TRUE); |
|
21 |
GGapi::putRichText("\n".' Wersja bota'."\n"); |
|
22 |
} |
|
23 |
else |
|
24 |
{ |
|
25 |
GGapi::putRichText('wersja', TRUE); |
|
26 |
GGapi::putRichText(' (alias: '); |
|
27 |
GGapi::putRichText('v', TRUE); |
|
28 |
GGapi::putRichText(')'."\n".' Zwraca wersję bota'); |
|
29 |
} |
|
30 |
} |
|
31 |
} |
|
32 |
?> |