mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Added configure() prompts to automatically disable the snarfer
This commit is contained in:
parent
1657339433
commit
b03e5612d2
@ -84,6 +84,12 @@ class BugError(Exception):
|
|||||||
def configure(onStart, afterConnect, advanced):
|
def configure(onStart, afterConnect, advanced):
|
||||||
from questions import expect, anything, yn
|
from questions import expect, anything, yn
|
||||||
onStart.append('load Bugzilla')
|
onStart.append('load Bugzilla')
|
||||||
|
print 'The Bugzilla plugin has the functionality to watch for URLs'
|
||||||
|
print 'that match a specific pattern (we call this a snarfer). When'
|
||||||
|
print 'supybot sees such a URL, he will parse the web page for information'
|
||||||
|
print 'and reply with the results.\n'
|
||||||
|
if yn('Do you want the Bugzilla snarfer enabled by default?') == 'n':
|
||||||
|
onStart.append('Bugzilla togglesnarfer')
|
||||||
|
|
||||||
class Bugzilla(callbacks.PrivmsgCommandAndRegexp):
|
class Bugzilla(callbacks.PrivmsgCommandAndRegexp):
|
||||||
"""Show a link to a bug report with a brief description"""
|
"""Show a link to a bug report with a brief description"""
|
||||||
|
@ -55,6 +55,12 @@ def configure(onStart, afterConnect, advanced):
|
|||||||
# commands you would like to be run when the bot has finished connecting.
|
# commands you would like to be run when the bot has finished connecting.
|
||||||
from questions import expect, anything, something, yn
|
from questions import expect, anything, something, yn
|
||||||
onStart.append('load Ebay')
|
onStart.append('load Ebay')
|
||||||
|
print 'The Ebay plugin has the functionality to watch for URLs'
|
||||||
|
print 'that match a specific pattern (we call this a snarfer). When'
|
||||||
|
print 'supybot sees such a URL, he will parse the web page for information'
|
||||||
|
print 'and reply with the results.\n'
|
||||||
|
if yn('Do you want the Ebay snarfer enabled by default?') == 'n':
|
||||||
|
onStart.append('Ebay togglesnarfer')
|
||||||
|
|
||||||
example = utils.wrapLines("""
|
example = utils.wrapLines("""
|
||||||
Add an example IRC session using this module here.
|
Add an example IRC session using this module here.
|
||||||
|
@ -53,6 +53,12 @@ def configure(onStart, afterConnect, advanced):
|
|||||||
# commands you would like to be run when the bot has finished connecting.
|
# commands you would like to be run when the bot has finished connecting.
|
||||||
from questions import expect, anything, something, yn
|
from questions import expect, anything, something, yn
|
||||||
onStart.append('load Gameknot')
|
onStart.append('load Gameknot')
|
||||||
|
print 'The Gameknot plugin has the functionality to watch for URLs'
|
||||||
|
print 'that match a specific pattern (we call this a snarfer). When'
|
||||||
|
print 'supybot sees such a URL, he will parse the web page for information'
|
||||||
|
print 'and reply with the results.\n'
|
||||||
|
if yn('Do you want the Gameknot snarfer enabled by default?') == 'n':
|
||||||
|
onStart.append('Gameknot togglesnarfer')
|
||||||
|
|
||||||
|
|
||||||
example = utils.wrapLines("""
|
example = utils.wrapLines("""
|
||||||
|
@ -78,6 +78,12 @@ def configure(onStart, afterConnect, advanced):
|
|||||||
onStart.append('alias googlelinux "google --restrict=linux $1"')
|
onStart.append('alias googlelinux "google --restrict=linux $1"')
|
||||||
onStart.append('alias googlebsd "google --restrict=bsd $1"')
|
onStart.append('alias googlebsd "google --restrict=bsd $1"')
|
||||||
onStart.append('alias googlemac "google --restrict=mac $1"')
|
onStart.append('alias googlemac "google --restrict=mac $1"')
|
||||||
|
print 'The Google plugin has the functionality to watch for URLs'
|
||||||
|
print 'that match a specific pattern (we call this a snarfer). When'
|
||||||
|
print 'supybot sees such a URL, he will parse the web page for'
|
||||||
|
print 'information and reply with the results.\n'
|
||||||
|
if yn('Do you want the Google snarfer enabled by default?') == 'n':
|
||||||
|
onStart.append('Google togglesnarfer')
|
||||||
else:
|
else:
|
||||||
print 'You\'ll need to get a key before you can use this plugin.'
|
print 'You\'ll need to get a key before you can use this plugin.'
|
||||||
print 'You can apply for a key at http://www.google.com/apis/'
|
print 'You can apply for a key at http://www.google.com/apis/'
|
||||||
|
@ -54,6 +54,12 @@ def configure(onStart, afterConnect, advanced):
|
|||||||
# commands you would like to be run when the bot has finished connecting.
|
# commands you would like to be run when the bot has finished connecting.
|
||||||
from questions import expect, anything, something, yn
|
from questions import expect, anything, something, yn
|
||||||
onStart.append('load Sourceforge')
|
onStart.append('load Sourceforge')
|
||||||
|
print 'The Sourceforge plugin has the functionality to watch for URLs'
|
||||||
|
print 'that match a specific pattern (we call this a snarfer). When'
|
||||||
|
print 'supybot sees such a URL, he will parse the web page for information'
|
||||||
|
print 'and reply with the results.\n'
|
||||||
|
if yn('Do you want the Sourceforge snarfer enabled by default?') == 'n':
|
||||||
|
onStart.append('Sourceforge togglesnarfer')
|
||||||
|
|
||||||
example = utils.wrapLines("""
|
example = utils.wrapLines("""
|
||||||
<@jamessan|work> @bugs
|
<@jamessan|work> @bugs
|
||||||
|
Loading…
Reference in New Issue
Block a user