Irssi is a powerful and terminal based IRC client which runs on most UNIX-like operating systems.
Amongst other things, Irssi supports:
Contents |
Listed below are examples of Irssi usage. Please remember to issue /save when you have modified your Irssi configuration. Neglicting to /save will cause Irssi to revert to the latest saved settings next time you start the client.
For more information on the commands listed in the examples below, use Irssi's /help command, eg. /help server
In order to have Irssi connect to Ambernet (and be able to autolog properly) we will have to add Ambernet to Irssi's list of networks. We use /network to do this:
/network add Ambernet
We will use /server to add an IRC server to our network. We could go ahead and add every Ambernet server to the list, but since Ambernet has a round-robin address, irc.ambernet.org, we might
as well just use that to connect to a random Ambernet server:
/server add -network Ambernet irc.ambernet.org
Now you can connect to Ambernet:
/connect Ambernet
One can make Irssi automatically join a channel by adding the channel to Irssi's channel list. We do this using /channel:
/channel add -auto #beginner Ambernet
The -auto switch will make Irssi automatically join the channel upon connect. It will also automatically join the channel upon /invite[2].
One can also use /channel to send commands to bots upon joining a specified channel, see /help channel for more information.
I use the following settings to automatically log all channels and queries into ~/irclogs/Network/#channel/#channel-YYYY-MM-DD.log and ~/irclogs/Network/nick/nick-YYYY-MM-DD.log respectively. To achieve this, use the following commands:
/set autolog_path ~/irclogs/$tag/$0/${0}-%Y-%m-%d.log
/set autolog on
You may find, after a couple of months of logging, that your logs are starting to take up a lot of disk space. In that case you may want to consider compressing your log files. To compress my Irssi log files I use find, date and bzip2 in conjunction:
find ~/irclogs/ -type f ! -iname '*bz2' ! -path '*`date +%Y-%m-%d`.log' -exec bzip2 {} \;
The above command is supposed to be issued on your shell, not in irssi. It would compress all logs in the ~/irclogs/ directory, along with its subdirectories, except the logs of the current day (in case Irssi needs to write more data to them.)
There is an script that does this automatically upon log rotation, but I do not know if it works.
One can use crontab's special string @reboot to make Irssi start at system boot. For example:
@reboot /usr/local/bin/screen -d -m -S irssi /usr/local/bin/irssi
/set join_auto_chans_on_invite OFF