pyrc
pyrc copied to clipboard
a lightweight Python IRC bot library
Hi there, I got some errors when I tried to use pyrc with a python 3 project, so I made a few changes for it to work with python 3....
Python 3 comes with a load of enhancements that may be rather helpful to `pyrc`. It comes with [better unicode support](http://nedbatchelder.com/text/unipain.html) that can help resolve https://github.com/sarenji/pyrc/issues/24, extended tuple unpacking, etc....
Please :)
`command()` - defaults to function name `privmsg()` - defaults to all input
I'll look into why if I have time.
The API could be made much more like Flask's, i.e. classless. However, that's a pretty big rewrite. I'm going to save this for version 1.0.0.
I think this would be a good feature to add but it may not fit the goal of `pyrc` being a slim and concise library. Any opinions?
When you talk in a certain channel, the raw IRC line looks like this: ``` :[email protected] PRIVMSG #testchannel :blah blah ``` So, the "recipient" variable is set to `#testchannel`. When...
Right now, the bot may send a PRIVMSG to a channel even before it joins that channel as threads are started before the bot gets to join all channels.
The title says it all. Do you think it's a good idea? :)