2005-12-19 16:39:54 +03:00
|
|
|
FAQ
|
2007-02-01 13:56:45 +03:00
|
|
|
===
|
2005-12-19 16:39:54 +03:00
|
|
|
|
|
|
|
Where is IRC command xy (ignore etc.)?
|
|
|
|
--------------------------------------
|
|
|
|
ii is for advanced users, please use standard tools like awk, sed and grep for
|
|
|
|
this. This can be done easily and will not bloat the code.
|
|
|
|
|
2017-06-02 10:54:54 +03:00
|
|
|
|
2006-01-18 20:21:22 +03:00
|
|
|
Where is a graphical interface?
|
2005-12-19 16:39:54 +03:00
|
|
|
-------------------------------
|
2006-01-18 20:21:22 +03:00
|
|
|
Basically ii follows the UNIX philosophy so it is only file based. But it
|
2005-12-19 16:39:54 +03:00
|
|
|
should be easy to build different interface because they only have to handle
|
|
|
|
the FIFOs and output files. Feel free to implement or wait until we have done
|
2007-02-01 13:56:45 +03:00
|
|
|
this. Actually I use ii in combination with vim, multitail and screen and it works
|
|
|
|
like a charm.
|
2005-12-19 16:39:54 +03:00
|
|
|
|
2017-06-02 10:54:54 +03:00
|
|
|
|
2005-12-19 16:39:54 +03:00
|
|
|
Which commands are supported?
|
2007-02-03 14:58:13 +03:00
|
|
|
-----------------------------
|
2007-02-01 13:56:45 +03:00
|
|
|
j (join or msg), t (topic), a (away), n (nick), l (leave). The missing are
|
2005-12-19 16:39:54 +03:00
|
|
|
obsolete or can be easily used by typing the IRC commands itself (i.e. /WHO
|
|
|
|
instead of /who).
|
2007-02-03 14:58:13 +03:00
|
|
|
|
2017-06-02 10:54:54 +03:00
|
|
|
|
2007-02-03 14:58:13 +03:00
|
|
|
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.
|
|
|
|
|
2017-06-02 10:54:54 +03:00
|
|
|
|
2007-02-03 14:58:13 +03:00
|
|
|
What other fancy stuff can I do with ii?
|
|
|
|
----------------------------------------
|
|
|
|
It is very easy to write irc bots in ii:
|
2017-06-02 10:54:54 +03:00
|
|
|
|
|
|
|
#!/bin/sh
|
|
|
|
chan="#yourchannel"
|
|
|
|
tail -f "${chan}/out" | while read -r line; do
|
|
|
|
cmd=$(printf '%s\n' "$line" | cut -d ' ' -f 4-)
|
|
|
|
name=$(printf '%s\n' "$line" | cut -d ' ' -f 3 | tr -d '<>')
|
|
|
|
if [ "$cmd" = "!rand" ]; then
|
|
|
|
r="$RANDOM"
|
|
|
|
if expr "$r" "%" "10"; then
|
|
|
|
echo "$name: $r" >> "${chan}/in"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2007-02-03 14:58:13 +03:00
|
|
|
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.
|