No change in functionality, but in doc and code.
[iii.git] / FAQ
blob03302c0a68d7e69446772c29dc331be3faca6d39
1 FAQ
2 ===
4 1. Where is IRC command xy (ignore etc.)?
5 --------------------------------------
6 ii is for advanced users, please use standard tools like awk, sed and grep for
7 this. This can be done easily and will not bloat the code.
9 2. Where is a graphical interface?
10 -------------------------------
11 Basically ii follows the UNIX philosophy, which means that it is only file
12 based. But it should be easy to build different interfaces because they only
13 have to handle the FIFOs and output files. Feel free to implement or wait until
14 we have done this (some people have actually done it now, just check the
15 internet). Personally I use ii in combination with vim, multitail and screen
16 and it works like a charm.
18 3. Which commands are supported?
19 -----------------------------
20 j (join or msg), t (topic), a (away), n (nick), l (leave). The missing ones are
21 obsolete or can be easily used by typing the IRC commands itself (i.e. /WHO
22 instead of /who).
24 4. How can I recognize queries?
25 ----------------------------
26 ii itself doesn't support this but the queries.sh script is an example of how
27 to get the new and changed files in your irc directory. To get an instant
28 notice of a new file, other mechanisms like inotify/dnotify could be used as
29 well but I was too lazy to try it out since the script is enough for me.
31 5. What other fancy stuff can I do with ii?
32 ----------------------------------------
33 It is very easy to write irc bots in ii:
34 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
35 This will just spam a channel but think about using nagios2irc or you can
36 use ii to generate channel stats. Your imagination should be boundless.
38 6. How can I automatically reconnect to a server or network?
39 ---------------------------------------------------------
40 As you might have guessed, ii does not support this feature. The fact is
41 however that it easily can be done by scripting or with the wrapper program
42 that is shipped with this package of ii. What the wrapper does not do, though,
43 is to join specific channels or handle registering functionality that a lot of
44 networks provide. Check the queries.sh script instead for this sort of
45 operations and read FAQ entry 4.