mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Added docstring and configure function.
This commit is contained in:
parent
bdd66dbd5e
commit
3fe81ebdcb
@ -30,7 +30,7 @@
|
|||||||
###
|
###
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Add the module docstring here. This will be used by the setup.py script.
|
A plugin that tries to emulate Infobot somewhat faithfully.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from baseplugin import *
|
from baseplugin import *
|
||||||
@ -47,6 +47,10 @@ import callbacks
|
|||||||
|
|
||||||
dbfilename = os.path.join(conf.dataDir, 'Infobot.db')
|
dbfilename = os.path.join(conf.dataDir, 'Infobot.db')
|
||||||
|
|
||||||
|
def configure(onStart, afterConnect, advanced):
|
||||||
|
from questions import expect, anything, something, yn
|
||||||
|
onStart.append('load Infobot')
|
||||||
|
|
||||||
def makeDb(filename):
|
def makeDb(filename):
|
||||||
if os.path.exists(filename):
|
if os.path.exists(filename):
|
||||||
return sqlite.connect(filename)
|
return sqlite.connect(filename)
|
||||||
|
Loading…
Reference in New Issue
Block a user