irc3.plugins.fifo Fifo plugin

Allow to cat something to a channel using Unix’s fifo

Usage:

>>> config = ini2config("""
... [bot]
... includes =
...     irc3.plugins.fifo
... [irc3.plugins.fifo]
... runpath = /tmp/run/irc3
... """)
>>> bot = IrcBot(**config)

When your bot will join a channel it will create a fifo:

>>> bot.test(':irc3!user@host JOIN #channel')
>>> print(sorted(os.listdir('/tmp/run/irc3')))
[':raw', 'channel']

You’ll be able to print stuff to a channel from a shell:

$ cat /etc/passwd > /tmp/run/irc3/channel

You can also send raw irc commands using the :raw file:

$ echo JOIN \#achannel > /tmp/run/irc3/:raw