mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +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
|
||||
# commands you would like to be run when the bot has finished connecting.
|
||||
from questions import expect, anything, something, yn
|
||||
onStart.append('load Dict')
|
||||
onStart.append('load Dictionary')
|
||||
print 'The default dictd server is dict.org.'
|
||||
if yn('Would you like to specify a dictd server?') == 'y':
|
||||
server = something('What server?')
|
||||
@ -69,7 +69,7 @@ example = utils.wrapLines("""
|
||||
<supybot> jemfinch: foldoc
|
||||
""")
|
||||
|
||||
class Dict(callbacks.Privmsg):
|
||||
class Dictionary(callbacks.Privmsg):
|
||||
threaded = True
|
||||
dictServer = 'dict.org'
|
||||
def __init__(self):
|
||||
@ -146,6 +146,6 @@ class Dict(callbacks.Privmsg):
|
||||
irc.reply(msg, s)
|
||||
|
||||
|
||||
Class = Dict
|
||||
Class = Dictionary
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
@ -31,17 +31,8 @@
|
||||
|
||||
from test import *
|
||||
|
||||
class DictTestCase(PluginTestCase, PluginDocumentation):
|
||||
plugins = ('Dict', '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')
|
||||
|
||||
class DictionaryTestCase(PluginTestCase, PluginDocumentation):
|
||||
plugins = ('Dictionary', 'MiscCommands')
|
||||
def testDict(self):
|
||||
self.assertNotError('dict slash')
|
||||
self.assertNotRegexp('dict web1913 slash', 'foldoc')
|
Loading…
Reference in New Issue
Block a user