Prevent wrapper.c from flooding the IRC server.
[iii.git] / doc / FAQ
blob935bd32b169c8e3a0f9afaf5a9177bf0d2028402
1 FAQ
2 ===
4 1. Where is IRC command xy (ignore etc.)?
5 -----------------------------------------
6 ii(1) is for advanced users, please use standard tools like awk(1), sed(1) and
7 grep(1) instead. This can be done easily and is not going to bloat the code.
9 See also FAQ entry 3.
11 2. Where is a graphical interface?
12 ----------------------------------
13 ii(1) follows the UNIX philosophy, which means that it is only file based. It
14 should be, though, easy to build different interfaces, as they only have to
15 handle the FIFOs and output files. Feel free to implement!
17 3. Which commands are supported?
18 --------------------------------
19 j (join or msg), t (topic), a (away), n (nick), l (leave). The missing ones are
20 obsolete or can be easily used by typing the IRC commands itself (i.e. /WHO
21 instead of /who).
23 4. How can I recognize queries?
24 -------------------------------
25 ii itself doesn't support this but the queries.sh script is an example of how
26 to get the new and changed files in your irc directory. To get an instant
27 notice of a new file, other mechanisms like inotify/dnotify could be used as
28 well but I was too lazy to try it out since the script is enough for me.
30 5. What other fancy stuff can I do with ii?
31 -------------------------------------------
32 It is very easy to write irc bots in ii:
33 tail -f \#/out | while read foo; do name=echo $foo | awk '{print $2}' | sed 's,<\\(.*\\)>,\\1,'; if 0 -eq expr $RANDOM % 10 then echo "$name: WHAT??" ; fi; done
34 This will just spam a channel but think about using nagios2irc or you can
35 use ii to generate channel stats. Your imagination should be boundless.
37 6. How can I automatically reconnect to a server or network?
38 ------------------------------------------------------------
39 As you might have guessed, ii does not support this feature. The fact is
40 however that it easily can be done by scripting or with the wrapper(1) program
41 that is shipped with this package of ii.