mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
I'm dumb
This commit is contained in:
parent
4dafdcdd57
commit
8954aa2d71
@ -40,6 +40,7 @@ import string
|
|||||||
import os.path
|
import os.path
|
||||||
from itertools import imap
|
from itertools import imap
|
||||||
|
|
||||||
|
import supybot.dbi as dbi
|
||||||
import supybot.conf as conf
|
import supybot.conf as conf
|
||||||
import supybot.utils as utils
|
import supybot.utils as utils
|
||||||
import supybot.ircdb as ircdb
|
import supybot.ircdb as ircdb
|
||||||
@ -50,15 +51,6 @@ import supybot.privmsgs as privmsgs
|
|||||||
import supybot.registry as registry
|
import supybot.registry as registry
|
||||||
import supybot.callbacks as callbacks
|
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.registerPlugin('Factoids')
|
||||||
|
|
||||||
conf.registerChannelValue(conf.supybot.plugins.Factoids, 'learnSeparator',
|
conf.registerChannelValue(conf.supybot.plugins.Factoids, 'learnSeparator',
|
||||||
@ -260,6 +252,8 @@ class SqliteFactoidsDB(object):
|
|||||||
else:
|
else:
|
||||||
return cursor.fetchall()
|
return cursor.fetchall()
|
||||||
|
|
||||||
|
FactoidsDB = plugins.DB('Factoids', {'sqlite': SqliteFactoidsDB})
|
||||||
|
|
||||||
class Factoids(callbacks.Privmsg):
|
class Factoids(callbacks.Privmsg):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.__parent = super(Factoids, self)
|
self.__parent = super(Factoids, self)
|
||||||
|
Loading…
Reference in New Issue
Block a user