mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Changed the Dict plugin to Dictionary.
This commit is contained in:
parent
08fa5e01a0
commit
4b4ae20155
@ -54,7 +54,7 @@ def configure(onStart, afterConnect, advanced):
|
|||||||
# like to be run when the bot is started; append to afterConnect the
|
# like to be run when the bot is started; append to afterConnect the
|
||||||
# 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 Dict')
|
onStart.append('load Dictionary')
|
||||||
print 'The default dictd server is dict.org.'
|
print 'The default dictd server is dict.org.'
|
||||||
if yn('Would you like to specify a dictd server?') == 'y':
|
if yn('Would you like to specify a dictd server?') == 'y':
|
||||||
server = something('What server?')
|
server = something('What server?')
|
||||||
@ -69,7 +69,7 @@ example = utils.wrapLines("""
|
|||||||
<supybot> jemfinch: foldoc
|
<supybot> jemfinch: foldoc
|
||||||
""")
|
""")
|
||||||
|
|
||||||
class Dict(callbacks.Privmsg):
|
class Dictionary(callbacks.Privmsg):
|
||||||
threaded = True
|
threaded = True
|
||||||
dictServer = 'dict.org'
|
dictServer = 'dict.org'
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -146,6 +146,6 @@ class Dict(callbacks.Privmsg):
|
|||||||
irc.reply(msg, s)
|
irc.reply(msg, s)
|
||||||
|
|
||||||
|
|
||||||
Class = Dict
|
Class = Dictionary
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
@ -31,17 +31,8 @@
|
|||||||
|
|
||||||
from test import *
|
from test import *
|
||||||
|
|
||||||
class DictTestCase(PluginTestCase, PluginDocumentation):
|
class DictionaryTestCase(PluginTestCase, PluginDocumentation):
|
||||||
plugins = ('Dict', 'MiscCommands')
|
plugins = ('Dictionary', 'MiscCommands')
|
||||||
def testHelps(self):
|
|
||||||
self.assertNotError('list Dict')
|
|
||||||
self.assertNotError('syntax dict')
|
|
||||||
self.assertNotError('help dict')
|
|
||||||
self.assertNotError('syntax dictionaries')
|
|
||||||
self.assertNotError('help dictionaries')
|
|
||||||
self.assertNotError('syntax randomdictionary')
|
|
||||||
self.assertNotError('help randomdictionary')
|
|
||||||
|
|
||||||
def testDict(self):
|
def testDict(self):
|
||||||
self.assertNotError('dict slash')
|
self.assertNotError('dict slash')
|
||||||
self.assertNotRegexp('dict web1913 slash', 'foldoc')
|
self.assertNotRegexp('dict web1913 slash', 'foldoc')
|
Loading…
Reference in New Issue
Block a user