]> git.donarmstrong.com Git - infobot.git/blob - doc/USAGE
translate
[infobot.git] / doc / USAGE
1 # $Id$
2
3 ############
4 # EXAMPLES #
5 ############
6
7 DCC CHAT:
8 .+chan #chan
9 .chanset #chan +autojoin
10 .chanset +autojoin
11 .chanunset -autojoin
12 .chanset -autojoin
13
14 for list of configuration options, run:
15         ./scripts/findparam.pl
16
17
18 =====
19 <me> infobot: hex2ip aaBBcD12
20 <infobot> me: AABBCD12 = 170.187.205.18 
21
22 <me> infobot: test is testing
23 <infobot> me: okay
24 <me> infobot: testing?
25 <infobot> testing is testing
26
27 <me> infobot: tests is <REPLY> testing
28 <infobot> me: okay
29 <me> infobot: tests?
30 <infobot> testing
31
32 <me> infobot: cough is <ACTION> coughs
33 <infobot> me: okay
34 <me> infobot: cough
35 * infobot/#infobot coughs
36
37 <me> infobot: test is <REPLY> What's (one|two|three|four|five|six)
38         times (seven|eight|nine|ten|eleven|twelve)?
39 <infobot> okay, me
40 <me> infobot: test
41 <infobot> What's four times nine?
42 <me> infobot: test?
43 <infobot> What's six times ten?
44
45 <me> infobot: op me is <ACTION> Mode change "+o $nick" on channel
46         $channel by $ident
47 <infobot> me: okay
48 <me> infobot: op me
49 * infobot/#debian-bots Mode change "+o me" on channel #infobot by
50         infobot
51
52 <me> infobot: no who am i is <REPLY> You are $nick!$user@$host on
53         $channel.
54 <infobot> okay, me
55 <me> infobot: who am i
56 <infobot> You are me!me@home.org on #infobot.
57
58 <me> infobot: who last spoke is <REPLY> To my knowledge, $lastspeaker
59         was the last to say something worthwhile.
60 <infobot> me: okay
61 <me> infobot: who last spoke
62 <infobot> To my knowledge, me was the last to say something worthwhile.
63
64 <me> infobot: percentage is <REPLY> you are $randpercentage% lame
65 <infobot> me: okay
66 <me> infobot: percentage
67 <infobot> you are 79% lame
68
69 <me> infobot: slap $1 is <action> slaps $1
70 <infobot> me: okay, me
71 <me> infobot: slap Bob
72  * infobot slaps Bob
73 <me> infobot: forget cmd: slap (.*?)
74 <infobot> me: i forgot cmd: slap (.*?)
75
76
77 #################
78 # USER COMMANDS #
79 #################
80
81 Command: 4op
82 =============
83 Description:
84         ...
85
86 Usage: REQUIRES +o flag.
87         4op ...
88
89 Example:
90         ...
91
92
93 Command: dumpvars
94 =============
95 Description:
96         ...
97
98 Usage: REQUIRES +o flag.
99         dumpvars ...
100
101 Example:
102         ...
103
104
105 Command: kick
106 =============
107 Description:
108         ...
109
110 Usage: REQUIRES +o flag.
111         kick ...
112
113 Example:
114         ...
115
116
117 Command: ignore
118 =============
119 Description:
120         ...
121
122 Usage: REQUIRES +o flag.
123         ignore ...
124
125 Example:
126         ...
127
128
129 Command: ignorelist
130 =============
131 Description:
132         ...
133
134 Usage: REQUIRES +o flag.
135         ignorelist ...
136
137 Example:
138         ...
139
140
141 Command: unignore
142 =============
143 Description:
144         ...
145
146 Usage: REQUIRES +o flag.
147         unignore ...
148
149 Example:
150         ...
151
152
153 Command: clear ignorelist
154 =============
155 Description:
156         ...
157
158 Usage: REQUIRES +o flag.
159         clear ignorelist ...
160
161 Example:
162         ...
163
164
165 Command: lobotomy
166 =============
167 Description:
168         ...
169
170 Usage: REQUIRES +o flag.
171         lobotomy ...
172
173 Example:
174         ...
175
176
177 Command: unlobotomy
178 =============
179 Description:
180         ...
181
182 Usage:
183         unlobotomy ...
184
185 Example:
186         ...
187
188
189 Command: op
190 =============
191 Description:
192         ...
193
194 Usage: REQUIRES +o flag.
195         op ...
196
197 Example:
198         ...
199
200
201 Command: say
202 =============
203 Description:
204         ...
205
206 Usage: REQUIRES +o flag.
207         say ...
208
209 Example:
210         ...
211
212
213 Command: die
214 =============
215 Description:
216         ...
217
218 Usage: REQUIRES +n flag.
219         die ...
220
221 Example:
222         ...
223
224
225 Command: jump
226 =============
227 Description:
228         ...
229
230 Usage: REQUIRES +n flag.
231         jump ...
232
233 Example:
234         ...
235
236
237 Command: rehash
238 =============
239 Description:
240         ...
241
242 Usage: REQUIRES +n flag.
243         rehash ...
244
245 Example:
246         ...
247
248
249 Command: set
250 =============
251 Description:
252         ...
253
254 Usage: REQUIRES +n flag.
255         set ...
256
257 Example:
258         ...
259
260
261 Command: unset
262 =============
263 Description:
264         ...
265
266 Usage: REQUIRES +n flag.
267         unset ...
268
269 Example:
270         ...
271
272
273 Command: chanstats
274 =============
275 Description:
276         Channel statistics is gathered while the bot is operation in those
277         channels it is located. They include: join, part, kick, ban, and
278         countless others.
279
280 Usage:
281         chanstats [#channel]
282
283 Example:
284         > infobot: chanstats
285         <infobot> i am on 2 channels: #infobot #debian
286         <infobot> i've cached 5 users distributed over 2 channels.      
287
288         > infobot: chanstats #infobot
289         <infobot> On #infobot, there have been 1 Join, 1 Op and 20
290                 PublicMsgs.
291         <infobot> At the moment, 3 Opped and 3 Total.
292
293
294 Command: cmdstats
295 =============
296 Description:
297         ...
298
299 Usage:
300         cmdstats ...
301
302 Example:
303         ...
304
305
306 Command: crypt
307 =============
308 Description:
309         ...
310
311 Usage:
312         crypt ...
313
314 Example:
315         ...
316
317
318 Command: factinfo
319 =============
320 Description:
321         ...
322
323 Usage:
324         factinfo ...
325
326 Example:
327         ...
328
329
330 Command: factstats
331 =============
332 Description:
333         ...
334
335 Usage:
336         factstats ...
337
338 Example:
339         ...
340
341
342 Command: karma
343 =============
344 Description:
345         ...
346
347 Usage:
348         karma ...
349
350 Example:
351         ...
352
353
354 Command: spell
355 =============
356 Description:
357         ...
358
359 Usage:
360         spell ...
361
362 Example:
363         ...
364
365
366 Command: nslookup
367 =============
368 Description:
369         ...
370
371 Usage:
372         nslookup ...
373
374 Example:
375         ...
376
377
378 Command: part
379 =============
380 Description:
381         ...
382
383 Usage:
384         part ...
385
386 Example:
387         ...
388
389
390 Command: rot13
391 =============
392 Description:
393         ...
394
395 Usage:
396         rot13 ...
397
398 Example:
399         ...
400
401
402 Command: wantNick
403 =============
404 Description:
405         ...
406
407 Usage:
408         wantNick ...
409
410 Example:
411         ...
412
413
414 Command: join
415 =============
416 Description:
417         The bot can be commanded to join a channel if it is not already on
418         there in the case of a kick/ban, invite only or invalid key to
419         name a few typical case scenarios.
420
421         The channels which the bot can join is governed by the
422         configuration parameter labelled 'join_channels'. However, this
423         is ignored for those users with the +o flag in the user table.
424
425 Usage:
426         join <#channel>[,key]
427
428 Example:
429         > infobot: join #infobot
430         [infobot] joining #infobot
431         *** join/#debian infobot (xk@router.home.org)
432         > infobot: join #infobot
433         [infobot] I'm already on #infobot...
434
435
436
437                     ======================================
438                                MODULE COMMANDS
439                     ======================================
440
441 Command: countdown
442 =============
443 Description:
444         ...
445
446 Usage:
447         countdown ...
448
449 Example:
450         ...
451
452
453 Command: debian package
454 =============
455 Description:
456         ...
457
458 Usage:
459         [] ...
460
461 Example:
462         ...
463
464
465 Command: dict
466 =============
467 Description:
468         ...
469
470 Usage:
471         dict ...
472
473 Example:
474         ...
475
476
477 Command: freshmeat
478 =============
479 Description:
480         ...
481
482 Usage:
483         freshmeat ...
484
485 Example:
486         ...
487
488
489 Command: google
490 =============
491 Description:
492         ...
493
494 Usage:
495         google ...
496
497 Example: DOES NOT WORK YET(??)
498         ...
499
500
501 Command: insult
502 =============
503 Description:
504         ...
505
506 Usage:
507         insult ...
508
509 Example:
510         ...
511
512
513 Command: kernel
514 =============
515 Description:
516         ...
517
518 Usage:
519         kernel ...
520
521 Example:
522         ...
523
524
525 Command: lart
526 =============
527 Description:
528         ...
529
530 Usage:
531         lart ...
532
533 Example:
534         ...
535
536
537 Command: list{keys|vals}
538 =============
539 Description:
540         ...
541
542 Usage:
543         list{keys|vals} ...
544
545 Example:
546         ...
547
548
549 Command: nickometer
550 =============
551 Description:
552         ...
553
554 Usage:
555         nickometer ...
556
557 Example:
558         ...
559
560
561 Command: quotes
562 =============
563 Description:
564         ...
565
566 Usage:
567         quotes ...
568
569 Example:
570         ...
571
572
573 Command: rootwarn
574 =============
575 Description:
576         ...
577
578 Usage:
579         rootwarn ...
580
581 Example:
582         ...
583
584
585 Command: seen
586 =============
587 Description:
588         ...
589
590 Usage:
591         seen ...
592
593 Example:
594         ...
595
596
597 Command: listauth
598 =============
599 Description:
600         ...
601
602 Usage:
603         listauth ...
604
605 Example:
606         ...
607
608
609 Command: slashdot
610 =============
611 Description:
612         ...
613
614 Usage:
615         slashdot ...
616
617 Example:
618         ...
619
620
621 Command: debian contents
622 =============
623 Description:
624         ...
625
626 Usage:
627         debian ...
628
629 Example:
630         ...
631
632
633 Command: topic
634 =============
635 Description:
636         ...
637
638 Usage:
639         topic ...
640
641 Example:
642         ...
643
644
645 Command: translate
646 =============
647 Description:
648         ...
649
650 Usage:
651         x from [language]: phrase
652
653 Example:
654         ...
655
656
657 Command: uptime
658 =============
659 Description:
660         ...
661
662 Usage:
663         uptime ...
664
665 Example:
666         ...
667
668
669 Command: weather
670 =============
671 Description:
672         ...
673
674 Usage:
675         weather ...
676
677 Example: DOES NOT WORK
678         ...
679
680
681 Command: whatis
682 =============
683 Description:
684         ...
685
686 Usage:
687         whatis ...
688
689 Example: DOES NOT WORK
690         ...
691
692
693
694 ##################################
695 # MISCELLANEOUS/FACTOID COMMANDS #
696 ##################################
697
698 Command: forget
699 =============
700 Description:
701         ...
702
703 Usage:
704         forget ...
705
706 Example:
707         ...
708
709
710 Command: {un|}lock
711 =============
712 Description:
713         ...
714
715 Usage:
716         {un|}lock ...
717
718 Example:
719         ...
720
721
722 Command: rename
723 =============
724 Description:
725         ...
726
727 Usage:
728         rename ...
729
730 Example:
731         ...
732
733
734 Command: substitution
735 =============
736 Description:
737         ...
738
739 Usage:
740         $factoid =~ s/from/to/
741         $factoid =~ s#te/st/#test#g
742
743 Example:
744         ...
745
746
747 Command: karma set
748 =============
749 Description:
750         ...
751
752 Usage:
753         $nick++
754         $nick--
755
756 Example:
757         infobot++
758         infobot--
759
760
761 Command: maths
762 =============
763 Description:
764         ...
765
766 Usage:
767         2 + 2
768
769 Example:
770         ...
771
772
773 Command: tell
774 =============
775 Description:
776         ...
777
778 Usage:
779         tell <nick> about <factoid>
780
781 Example:
782         ...