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