mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Switchamabob
This commit is contained in:
parent
23c4267744
commit
fa84b0c87c
@ -611,8 +611,8 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
"""
|
"""
|
||||||
irc.reply('There have been %s answered and %s made '
|
irc.reply('There have been %s answered and %s made '
|
||||||
'to the database since this plugin was loaded.' %
|
'to the database since this plugin was loaded.' %
|
||||||
(utils.nItems('request', self.db.getChangeCount()),
|
(utils.nItems('request', self.db.getResponseCount()),
|
||||||
utils.nItems('change', self.db.getResponseCount())))
|
utils.nItems('change', self.db.getChangeCount())))
|
||||||
|
|
||||||
def tell(self, irc, msg, args):
|
def tell(self, irc, msg, args):
|
||||||
"""<nick> [about] <factoid>
|
"""<nick> [about] <factoid>
|
||||||
|
@ -52,6 +52,7 @@ if sqlite is not None:
|
|||||||
ibot.snarfUnaddressedDefinitions.setValue(True)
|
ibot.snarfUnaddressedDefinitions.setValue(True)
|
||||||
ibot.answerUnaddressedQuestions.setValue(True)
|
ibot.answerUnaddressedQuestions.setValue(True)
|
||||||
self.assertSnarfNoResponse('foo is at http://bar.com/', 2)
|
self.assertSnarfNoResponse('foo is at http://bar.com/', 2)
|
||||||
|
self.assertRegexp('infobot stats', '1 change')
|
||||||
self.assertSnarfRegexp('foo?', r'foo.*is.*http://bar.com/')
|
self.assertSnarfRegexp('foo?', r'foo.*is.*http://bar.com/')
|
||||||
self.assertSnarfNoResponse('foo is at http://baz.com/', 2)
|
self.assertSnarfNoResponse('foo is at http://baz.com/', 2)
|
||||||
self.assertSnarfNotRegexp('foo?', 'baz')
|
self.assertSnarfNotRegexp('foo?', 'baz')
|
||||||
|
Loading…
Reference in New Issue
Block a user