mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
I'm dumb
This commit is contained in:
parent
4dafdcdd57
commit
8954aa2d71
@ -40,6 +40,7 @@ import string
|
||||
import os.path
|
||||
from itertools import imap
|
||||
|
||||
import supybot.dbi as dbi
|
||||
import supybot.conf as conf
|
||||
import supybot.utils as utils
|
||||
import supybot.ircdb as ircdb
|
||||
@ -50,15 +51,6 @@ import supybot.privmsgs as privmsgs
|
||||
import supybot.registry as registry
|
||||
import supybot.callbacks as callbacks
|
||||
|
||||
import supybot.Owner as Owner
|
||||
|
||||
try:
|
||||
import sqlite
|
||||
except ImportError:
|
||||
raise callbacks.Error, 'You need to have PySQLite installed to use this ' \
|
||||
'plugin. Download it at <http://pysqlite.sf.net/>'
|
||||
|
||||
|
||||
conf.registerPlugin('Factoids')
|
||||
|
||||
conf.registerChannelValue(conf.supybot.plugins.Factoids, 'learnSeparator',
|
||||
@ -260,6 +252,8 @@ class SqliteFactoidsDB(object):
|
||||
else:
|
||||
return cursor.fetchall()
|
||||
|
||||
FactoidsDB = plugins.DB('Factoids', {'sqlite': SqliteFactoidsDB})
|
||||
|
||||
class Factoids(callbacks.Privmsg):
|
||||
def __init__(self):
|
||||
self.__parent = super(Factoids, self)
|
||||
|
Loading…
Reference in New Issue
Block a user