]> git.donarmstrong.com Git - infobot.git/blob - files/blootbot.help
Uptime is per channel
[infobot.git] / files / blootbot.help
1 # Revised: 19991109.
2 #  Author: xk
3 ###
4
5 main: I learn mainly by observing declarative statements such as "x is at http://www.xxx.com", and then reply when people ask things like "where can i find x?"
6
7 action: This is used to override the usual response. "x is <action> does the hokey-pokey". When asked about x, the bot does this "* blootbot does the hokey-pokey"
8
9 alternation: The || symbol in an entry causes an blootbot to choose one of the replies at random. "X is Y||Z" will produce "X is Y" or "X is Z" randomly.
10
11 author: oznoid (mailto:lenzo@ri.cmu.edu) is my original author.
12
13 dollar variables: D: To be used in factoids
14 dollar variables: $Fdunno      - ...
15 dollar variables: $Fquestion   - ...
16 dollar variables: $Fupdate     - ...
17 dollar variables: $channel     - channel from which the factoid was requested
18 dollar variables: $date        - current date
19 dollar variables: $factoids    - factoid count
20 dollar variables: $host        - hostname of factoid requester
21 dollar variables: $ident       - bot nick
22 dollar variables: $lastspeaker - ...
23 dollar variables: $memusage    - ...
24 dollar variables: $rand        - random number, also $rand100.2
25 dollar variables: $randnick    - random nick
26 dollar variables: $startTime   - start time
27 dollar variables: $time        - current time
28 dollar variables: $uptime      - ...
29 dollar variables: $user        - username of factoid requester
30 dollar variables: $who         - nick of factoid requester
31
32 corrections: If I come back with "...but x is at http://xx.xx.xx" or something like that, and you want to change the entry, use "no, x is at http://sdfsdfsdf".  The "No," tells me to supercede the existing value.
33 corrections: you can append stuff to a factoid with "also". "x is also at ..."
34
35 math: D: math expresions can be evaluated. This uses Perl syntax.
36 math: E: 1+1
37 math: + - add
38 math: - - subtract
39 math: * - multiply
40 math: / - division
41 math: ** - to the power
42 math: pi - pi
43 math: & - and
44 math: | = or
45 math: ^ - xor
46
47 redirection: If a factoid x contains simply "<reply> see y", then when asked for x, I will deliver factoidor command result y instead.
48
49 reply: There is a special tag, <reply>, that is used to override the usual response.  Usually, a response is "X is Y", but it can be made "Y" by making the entry "X is <reply> Y".
50
51 # now the commands...
52
53 adduser: D: Administrative command to add new user to the .users file
54 adduser: U: ## <user> <mask>
55 adduser: E: ## bloot bloot!bloot@example.com
56
57 addressing: It is a good idea if I stay in REQUIRE mode so that I won't yell out random crap if I listen in too hard.  Currently there is no way to turn this off on-the-fly. (REQUIRE mode requires me to be addressed by name if I am to respond)
58
59 babelfish: D: Frontend to babelfish translating service provided by http://babelfish.altavista.com/ Note that utf8 is used for non-ascii characters.
60 babelfish: U: x <fromLang> <toLang> <words>
61 babelfish: U: translate <fromLang> <toLang> <words>
62 babelfish: E: x en de your cars rock
63
64 -ban: D: FIXME:
65 -ban: U: ## <mask|user>
66 -ban: E: ## *!*@owns.org
67 -ban: E: ## MoronMan
68
69 +ban: D: FIXME:
70 +ban: U: ## <mask|user> [chan] [time] [reason]
71 +ban: E: ## *!*@owns.org #bots 60 stop flooding.
72 +ban: E: ## *!*@*microsoft.com STOOPID
73 +ban: E: ## MoronMan
74
75 botmail: D: Send someone botmail
76 botmail: U: ## {for <who>[:] <message>}|stats|check|read
77 botmail: E: ## for infobot: you rock!
78 botmail: E: ## stats
79 botmail: E: ## check
80 botmail: E: ## read
81
82 -chan: D: Leave a channel permanently
83 -chan: U: ## -#channel
84 -chan: E: ## -#botpark
85
86 +chan: D: Join a channel permanently
87 +chan: U: ## #channel
88 +chan: E: ## #botpark
89
90 chaninfo: D: Display channel statistics on Op, Ban, Deop, Unban, Part, Join, SignOff, PublicMsg, Kick and Topic
91 chaninfo: U: ## [#channel]
92 chaninfo: E: ##
93 chaninfo: E: ## #botpark
94
95 chanset: D: set a variable for a channel
96 chanset: U: ## [#chan] [what] [val]
97 chanset: E: ## #c +test
98 chanset: E: ## #c -test
99 chanset: E: ## #c test
100 chanset: E: ## #c test testing123
101
102 chanunset: D: remove a variable from a channel
103 chanunset: U: ## <#chan> [what]
104 chanunset: E: ## #c
105 chanunset: E: ## #c test
106
107 chattr: D: Change flags on a user (see @regFlagsUser in source)
108 chattr: U: ## <user> [flags]
109 chattr: E: ## bloot +nmo
110 chattr: E: ## bloot -ot
111 chattr: E: ## bloot
112
113 chnick: D: rename a nick (user) entry
114 chnick: U: ## [nick] <new-nick>
115 chnick: E: ## moron
116 chnick: E: ## owner eleet
117
118 chpass: D: Change a user's password
119 chpass: U: ## [user] <pass>
120 chpass: E: ## testing
121 chpass: E: ## testing test0R
122
123 contents: D: Debian Contents search only (no Packages)
124 contents: U: ## <string> [dist]
125 contents: E: ## strings.h
126 contents: E: ## x11amp potato
127
128 cookie: I can feed your appetite with random factoids.
129
130 cpustats: cpustats dumps the bot's cpu usage this session
131
132 crypt: It's good that you thought about encryption. I can do it for you.
133 crypt: U: ## <salt> <string>
134 crypt: E: ## 69 changeme
135
136 cycle: D: Causes me to cycle in the channel it's said, or in the named channel
137 cycle: U: ## [channel]
138 cycle: E: ##
139 cycle: E: ## #botpark
140
141 dauthor: D: Find Debian package maintainers, and list the packages they maintain
142 dauthor: U: ## <string> [dist]
143 dauthor: E: ## Wichert
144 dauthor: E: ## Wichert potato
145
146 dbugs: D: Show the current count of release critical bugs (latest versions)
147 dbugs: U: ##
148
149 deluser: D: Administrative command to remove a user from the .users file
150 deluser: U: ## <user>
151 deluser: E: ## bloot
152
153 ddesc: D: Search the Description: lines in Debian packages
154 ddesc: U: ## <string> [dist]
155 ddesc: E: ## mule
156 ddesc: E: ## mule potato
157
158 dfind: D: Debian Packages (fallback to Contents) search
159 dfind: U: ## <string> [dist]
160 dfind: E: ## strings.h
161 dfind: E: ## x11amp potato
162
163 dict: D: DICT Protocol Client
164 dict: U: ## <query>
165 dict: E: ## AI
166 dict: E: ## 1 linux
167
168 dns: D: Query DNS
169 dns: U: ## <host|ip>
170 dns: E: ## debian.org
171 dns: E: ## 3.1.33.7
172
173 do: D: operator command to do things in a channel
174 do: U: ## <chan> <what>
175
176 dstats: D: Show basic stats on the current size of the Debian distros
177 dstats: U: ## [dist]
178 dstats: E: ##
179 dstats: E: ## potato
180
181 factinfo: D: View statistical information about a particular factoid.
182 factinfo: U: ## <factoid>
183 factinfo: E: ## test
184
185 factstats: D: Display statistical data (max of 15) about factoids.
186 factstats: U: ## <type>
187 factstats: == author    -- top author of factoids.
188 factstats: == deadredir -- ??
189 factstats: == duplicate -- duplicate factoids.
190 factstats: == listfix   -- ??
191 factstats: == locked    -- locked factoids.
192 factstats: == new       -- recent addition of factoids.
193 factstats: == nullfactoids -- ??
194 factstats: == partdupe  -- initial partial duplicate factoids.
195 factstats: == profanity -- possibly offensive factoids.
196 factstats: == redir     -- redirection in factoids.
197 factstats: == reqrate   -- ??
198 factstats: == requested -- most requested factoids.
199 factstats: == requesters -- most requested factoids.
200 factstats: == seefix    -- ??
201 factstats: == toolong   -- factoid {key|value} exceeding specified length.
202 factstats: == tooshort  -- factoid {key|value} shorter than specified length.
203 factstats: == total     -- ??
204 factstats: == unrequest -- unrequested factoids.
205 factstats: == vandalism -- ??
206 factstats: E: ## new
207
208 forget: If I have an old/redundant factoid x, "forget x" will cause me to erase it.
209
210 freshmeat: D: Frontend to www.freshmeat.net
211 freshmeat: U: ## <query>
212 freshmeat: E: ## blootbot
213
214 hex: D: Convert ascii to hex
215 hex: U: ## <string>
216 hex: E: ## carrot
217
218 httpdtype: D: Get httpd server software version / configuration
219 httpdtype: U: ## <hostname>
220 httpdtype: E: ## example.com
221
222 ignore: D: ignore list management
223 ignore: E: ## [mask chan expire comment]
224 ignore: E: addignore guu!*@*
225
226 ircstats: ircstats dumps some status information on the bot's IRC connection
227
228 join: U: ## <#chan> [key]
229 join: E: ## #botpark
230 join: E: ## #botpark rules
231
232 karma: Karma is a community rating system.  Use "X++" to increase the karma, or "X--" to decrease it.  Ask for ratings using "karma for X?"
233
234 kernel: D: Frontend to linux.kernel.org's finger response.
235 kernel: U: ##
236
237 kick: U: ## <nick> [#chan] [message]
238 kick: E: ## oznoid
239 kick: E: ## larne #botpark
240 kick: E: ## john #foo go away!
241
242 lart: D: Luser Attitude Readjustment Tool
243 lart: U: ## [#chan] <who>
244 lart: E: ## lenzo infobot's bugginess
245 lart: E: ## #perl everyone perl \=\= lamerville
246
247 listauth: D: Search the factoid extension db by creator
248 listauth: U: ## <search>
249 listauth: E: ## xk
250
251 listkeys: D: Search the factoid database by key (factoid)
252 listkeys: U: ## <regex>
253 listkeys: E: ## blootbot
254
255 listvalues: D: Search the factoid database by value (description)
256 listvalues: U: ## <regex>
257 listvalues: E: ## blootbot
258
259 literal: used to get a raw factoid contents. Use _default to ignore factoidSearch path.
260 literal: U: ## [_default|prefix] <factoid>
261 literal: E: ## blootbot
262
263 lobotomy: I can be given a lobotomy ([o] is required) if people start to abuse me.  To bring me back to life, give me an unlobotomy
264
265 lock: D: Factoid locking to prevent removal by others
266 lock: U: ## <factoid>
267 lock: E: ## abuse
268 lock: N: By default, only registered "ops" on the bots or factoids matching the user's nick are able to lock factoids.
269 lock: N: Requires factoid extension (extra) support enabled.
270
271 mode: set modes for a channel
272 mode: U: ## <#chan> <mode>
273 mode: E: ## #botpark +t
274 mode: E: ## #botpark -i
275
276 news: D: News functions
277 news: U: ## [chan] <add,del,mod,set,latest,read,help>
278
279 news add: D: Add news items
280 news add: U: news [chan] add <title>
281 news add: E: news add This is a test
282 news add: see _news set Text_ aswell
283
284 news set: D: Set stuff for news item
285 news set: U: news [chan] set <item> <what> [value]
286 news set:    valid <what>: Expire, Text
287 news set: E: news set 1 Text ok, this works
288 news set: E: news set test Text and this is a test
289 news set: E: news set test Text
290
291 news set expire: D: Set expire for news item
292 news set expire: U: news [chan] expire <what> <value>
293 news set expire: value can be: Xd Xh Xm Xs
294 news set expire: value can be: never
295 news set expire: news expire 1 3days
296 news set expire: news expire 2 +20d
297 news set expire: news expire Test 30d 20h 10m 5s
298 news set expire: news expire TEST never
299
300 news del: D: Delete news item (requires +o or be author)
301 news del: U: news [chan] del <item>
302 news del: E: news del 1
303 news del: E: news del test
304
305 news mod: D: Modify a news item (todo: modify Text aswell)
306 news mod: E: news [chan] mod <item> s/<from>/<to>/[g]
307 news mod: E: news mod 1 s/test/Test/
308 news mod: E: news mod test s/test/Test/g
309
310 nickometer: D: Measures the lame-ness of a nick or channel
311 nickometer: U: ## {nick,channel}
312 nickometer: E: ## unknown_lamer
313 nickometer: E: ## #botpark
314
315 ord: D: Convert ascii to decimal
316 ord: U: ## <single character>
317 ord: E: ## c
318
319 page: D: Send someone a pager message
320 page: U: ## <who> <message>
321 page: E: ## infobot you rock!
322 page: NOTE: this uses the "<who>'s pager" factoids for the From: and To: addresses of the format "example's pager" is "mailto:me@example.com"
323
324 part: D: Leave a channel (DCC only)
325 part: U: ## <#channel>
326 part: E: ## #botpark
327 part: NOTE: /kick is an alternative
328
329 quote: D: Frontend to yahoo's online stock market share listing
330 quote: U: ## <query...>
331 quote: E: ## RHAT,MSFT
332
333 rename: D: Factoid renaming
334 rename: U: ## 'from' 'to'
335 rename: E: ## 'infobot' 'blootbot'
336
337 rot13: D: ROT13's the given string
338 rot13: U: ## <string>
339 rot13: E: ## guvf vf n ynzr rknzcyr
340
341 say: D: operator command to say things in a channel
342 say: U: ## <chan> <what>
343
344 search: U: ## <engine> for <string>
345 search: E: ## google for blootbot
346
347 seen: D: Report last seen time for somebody
348 seen: U: ## <nick>
349 seen: E: ## blootbot
350
351 slashdot: D: News for nerds, Stuff that matters. [tm] (shows the headlines)
352 slashdot: U: ##
353
354 spell: You've guessed it right, I'm a spell checker. Give me any word and I can confirm whether it's good or bad.
355
356 status: status dumps general status information
357
358 tell: D: Tell someone about a factoid or command
359 tell: U: ## <who> -?about <what>
360 tell: E: ## me about blootbot
361 tell: E: ## someone -about testing
362
363 topic add: D: Add your own topic
364 topic add: U: ## <topic>
365 topic add: E: ## This is a test
366
367 topic del: D: Delete one or two subtopics
368 topic del: U: ## <#>
369 topic del: E: ## 1
370 topic del: E: ## 1-3,5
371 topic del: E: ## last
372
373 topic mod: D: Search and replace strings in the topic
374 topic mod: U: ## <REGEX>
375 topic mod: E: ## s/test/TEST/
376 topic mod: E: ## s#msg test#/msg test#g
377
378 topic mv: D: Move subtopics around.
379 topic mv: U: ## <#> <before|after|swap> <#>
380 topic mv: E: ## 1 after 2
381 topic mv: E: ## first before last
382
383 topic restore: D: Restores the topic to an earlier version
384 topic restore: U: ## <#>
385 topic restore: E: ## 3
386
387 topic: Usage for 'topic [#chan] <params>':
388 topic:   ---------------- __Subtopic__:
389 topic:   add <TOPIC>    - Append <TOPIC> to topic.
390 topic:   del <#>        - Remove subtopic <#> from topic.
391 topic:   list           - Display subtopics.
392 topic:   mod s/old/new/ - Search and replace topic.
393 topic:   mv <ARGS>      - 'topic mv'.
394 topic:   shuffle        - Randomly organize subtopics.
395 topic:   ---------------- __Topic__
396 topic:   history        - Show previous topics.
397 topic:   restore <#>    - Restore topic to <#>.
398 topic:   rehash         - Rehash changes to topic.
399 topic:   info           - Who and time info.
400 topic:   ---------------- __Misc__
401 topic:   about          - Read the file :)
402 topic:   help           - This screen.
403
404 topic: NOTE: #chan arg is only required if command is sent over private message to nick, otherwise it is not needed if sent to the channel.
405 topic: NOTE: commands can be preceeded? with '-' in order not to enforce changes to topic.
406 topic: End of help.
407
408 unforget: If a factoid has been forgotten, "unforget x" will cause me to unerase it.
409
410 unlobotomy: Not possible in real life, an unlobotomy will bring me back to life in the case of a lobotomy.
411
412 unlock: D: Factoid unlocking to allow removal by others.
413 unlock: U: ## <factoid>
414 unlock: E: ## abuse
415
416 uptime: D: Show the current uptime, and the top 3 uptimes recorded
417 uptime: U: ##
418
419 wantnick: If someone's taken my nick (I hope not) and I'm using some temporary nick, I can change back to my original nick if it's not taken (again).
420
421 wikipedia: D: Frontend to the Wikipedia at http://www.wikipedia.org/wiki/ Note that utf8 is used for non-ascii characters.
422 wikipedia: U: ## <topic>
423 wikipedia: U: wiki <topic>
424 wikipedia: E: wiki irc
425
426 wtf: D: Interface to the BSD wtf command
427 wtf: U: ## <abbreviation>
428 wtf: E: ## iirc
429
430 -host: D: admin command to remove hostmask from a user account
431 -host: U: ## [user] <mask>
432 -host: E: ## *!*@owns.org
433 -host: E: ## owner leet!leet@*.heh.org
434
435 +host: D: admin command to list or add hostmasks to a user account
436 +host: U: ## [user] [<mask>]
437 +host: E: ## owner
438 +host: E: ## *!*@owns.org
439 +host: E: ## owner leet!leet@*.heh.org