irc3.plugins.human Human pluginΒΆ

Store public message addressed to the bot in a file and reply a random message extracted from this file.

Register the plugin:

>>> bot = IrcBot(human='/tmp/human.db', nick='nono')
>>> bot.include('irc3.plugins.human')

And it should work:

>>> bot.test(':foo!m@h PRIVMSG nono :nono: Yo!')
PRIVMSG foo :Yo!

>>> bot.test(':foo!m@h PRIVMSG #chan :nono: Yo!')
PRIVMSG #chan :foo: Yo!