Rename wikipedia to wiki
parent
6abc4eeeb4
commit
0cec0ef295
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
"""
|
"""
|
||||||
wikipedia.py - Phenny Wikipedia Module
|
wiki.py - Phenny Wiki Module
|
||||||
Copyright 2008-9, Sean B. Palmer, inamidst.com
|
Copyright 2008-9, Sean B. Palmer, inamidst.com
|
||||||
Modified by Sfan5 2012
|
Modified by Sfan5 2013
|
||||||
Licensed under the Eiffel Forum License 2.
|
Licensed under the Eiffel Forum License 2.
|
||||||
|
|
||||||
http://inamidst.com/phenny/
|
http://inamidst.com/phenny/
|
||||||
|
@ -138,7 +138,7 @@ def wik(phenny, input):
|
||||||
return # Abort function
|
return # Abort function
|
||||||
origterm = input.groups()[1]
|
origterm = input.groups()[1]
|
||||||
if not origterm:
|
if not origterm:
|
||||||
return phenny.say('Perhaps you meant ".wik Zen"?')
|
return phenny.say('Perhaps you meant "!wik Zen"?')
|
||||||
origterm = origterm.encode('utf-8')
|
origterm = origterm.encode('utf-8')
|
||||||
print("[LOG]: %s queried Minetest Wiki for '%s'" % (input.nick,origterm))
|
print("[LOG]: %s queried Minetest Wiki for '%s'" % (input.nick,origterm))
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ def wik(phenny, input):
|
||||||
phenny.say(result)
|
phenny.say(result)
|
||||||
else: phenny.say('Can\'t find anything in Wiki for "%s".' % origterm)
|
else: phenny.say('Can\'t find anything in Wiki for "%s".' % origterm)
|
||||||
|
|
||||||
wik.commands = ['wik']
|
wik.commands = ['wik', 'wiki']
|
||||||
wik.priority = 'high'
|
wik.priority = 'high'
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
Loading…
Reference in New Issue