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
  | <?php 
 |  class bot_ort_init implements BotModuleInit { 
 |      function register() { 
 |          $handler = array( 
 |              array( 
 |                  'file' => 'handler.php', 
 |                  'class' => 'bot_ort_module', 
 |                  'method' => 'handle', 
 |              ) 
 |          ); 
 |           
 |          return array( 
 |              'ort' => $handler, 
 |              'o' => $handler, 
 |          ); 
 |      } 
 |       
 |      function help($params = NULL) { 
 |          if($params === NULL) { 
 |              return new BotMsg('<b>ort</b> <i>słowo</i><br />'."\n" 
 |                  . '   Słownik ortograficzny.<br />'."\n"); 
 |          } 
 |          else 
 |          { 
 |              return new BotMsg('<b>ort</b> <i>słowo</i> (alias: <b>o</b>)<br />'."\n" 
 |                  . '   Sprawdza <i>słowo</i> w słowniku ortograficznym. W przypadku jego nie odnalezienia zwraca propozycje poprawnej pisowni.<br />'."\n" 
 |                  . '<br />'."\n" 
 |                  . '<u>Przykłady:</u><br />'."\n" 
 |                  . 'ort grzegżółka<br />'."\n" 
 |                  . 'ort warsawa'); 
 |          } 
 |      } 
 |  } 
 |    
 |  return 'bot_ort_init'; 
 |  ?> 
 |  
  |