mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-03 16:52:34 +01:00
Added some useful imports.
This commit is contained in:
parent
6d99d8251a
commit
96cb71f9fa
@ -88,7 +88,9 @@ __contributors__ = {}
|
||||
|
||||
import supybot.conf as conf
|
||||
import supybot.utils as utils
|
||||
from supybot.commands import *
|
||||
import supybot.plugins as plugins
|
||||
import supybot.ircutils as ircutils
|
||||
import supybot.privmsgs as privmsgs
|
||||
import supybot.registry as registry
|
||||
import supybot.callbacks as callbacks
|
||||
@ -103,6 +105,9 @@ def configure(advanced):
|
||||
conf.registerPlugin(%r, True)
|
||||
|
||||
|
||||
conf.registerPlugin(%s)
|
||||
# This is where your configuration variables (if any) should go.
|
||||
|
||||
class %s(%s):
|
||||
%s
|
||||
|
||||
@ -187,7 +192,7 @@ def main():
|
||||
name = name[:-3]
|
||||
|
||||
fd = file(name + '.py', 'w')
|
||||
fd.write(template % ('Id', name, name, className, threaded, name))
|
||||
fd.write(template % ('Id', name, name, name, className, threaded, name))
|
||||
fd.close()
|
||||
print 'Your new plugin template is %s.py.' % name
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user