documentation fixes and query.sh added

This commit is contained in:
nion@h4447.serverkompetenz.net
2007-02-03 12:58:13 +01:00
parent f763ac712f
commit b2188116d1
3 changed files with 51 additions and 4 deletions

17
FAQ
View File

@@ -15,7 +15,22 @@ this. Actually I use ii in combination with vim, multitail and screen and it wor
like a charm.
Which commands are supported?
-----------------------------
-----------------------------
j (join or msg), t (topic), a (away), n (nick), l (leave). The missing are
obsolete or can be easily used by typing the IRC commands itself (i.e. /WHO
instead of /who).
How can I recognize queries?
----------------------------
ii itself doesn't support this but the queries.sh script is an example
of how to get the new and changed files in your irc directory.
To get an instant notice of a new file other mechanisms like inotify/dnotify
could be used as well but I was too lazy to try it out since the script
is enough for me.
What other fancy stuff can I do with ii?
----------------------------------------
It is very easy to write irc bots in ii:
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
This will just spam a channel but think about using nagios2irc or you can
use ii to generate channel stats. Your imagination should be boundless.