Update readme, fix search
parent
456efaefe1
commit
2ec39ddc34
24
README.md
24
README.md
|
@ -1,20 +1,24 @@
|
||||||
phenny
|
phenny
|
||||||
======
|
======
|
||||||
|
|
||||||
Warning
|
This is an experimental port of phenny, a Python IRC bot, to Python3. Do not
|
||||||
-------
|
expect it to work well or at all yet.
|
||||||
This is an experimental port of phenny to python3. Do not expect it to work at
|
|
||||||
all.
|
Support for IPv6 has been added, and SSL support is in the works.
|
||||||
|
|
||||||
|
Compatibility with existing phenny modules has been mostly retained, but they
|
||||||
|
will need to be updated to run on Python3 if they do not already.
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
1. Run ./phenny - this creates a default config file
|
1. Run `./phenny` - this creates a default config file
|
||||||
2. Edit ~/.phenny/default.py
|
2. Edit `~/.phenny/default.py
|
||||||
3. Run ./phenny - this now runs phenny with your settings
|
3. Run `./phenny` - this now runs phenny with your settings
|
||||||
|
|
||||||
Enjoy!
|
Enjoy!
|
||||||
|
|
||||||
--
|
Authors
|
||||||
Sean B. Palmer, http://inamidst.com/sbp/
|
-------
|
||||||
mutantmonkey, http://mutantmonkey.in
|
* Sean B. Palmer, http://inamidst.com/sbp/
|
||||||
|
* mutantmonkey, http://mutantmonkey.in
|
||||||
|
|
|
@ -10,10 +10,10 @@ http://inamidst.com/phenny/
|
||||||
import re
|
import re
|
||||||
import web
|
import web
|
||||||
|
|
||||||
class Grab(web.urllib.URLopener):
|
class Grab(web.urllib.request.URLopener):
|
||||||
def __init__(self, *args):
|
def __init__(self, *args):
|
||||||
self.version = 'Mozilla/5.0 (Phenny)'
|
self.version = 'Mozilla/5.0 (Phenny)'
|
||||||
web.urllib.URLopener.__init__(self, *args)
|
web.urllib.request.URLopener.__init__(self, *args)
|
||||||
self.addheader('Referer', 'https://github.com/sbp/phenny')
|
self.addheader('Referer', 'https://github.com/sbp/phenny')
|
||||||
def http_error_default(self, url, fp, errcode, errmsg, headers):
|
def http_error_default(self, url, fp, errcode, errmsg, headers):
|
||||||
return web.urllib.addinfourl(fp, [headers, errcode], "http:" + url)
|
return web.urllib.addinfourl(fp, [headers, errcode], "http:" + url)
|
||||||
|
|
Loading…
Reference in New Issue