Added some useful imports.

This commit is contained in:
Jeremy Fincher 2004-10-27 07:37:46 +00:00
parent 6d99d8251a
commit 96cb71f9fa

View File

@ -88,7 +88,9 @@ __contributors__ = {}
import supybot.conf as conf import supybot.conf as conf
import supybot.utils as utils import supybot.utils as utils
from supybot.commands import *
import supybot.plugins as plugins import supybot.plugins as plugins
import supybot.ircutils as ircutils
import supybot.privmsgs as privmsgs 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
@ -103,6 +105,9 @@ def configure(advanced):
conf.registerPlugin(%r, True) conf.registerPlugin(%r, True)
conf.registerPlugin(%s)
# This is where your configuration variables (if any) should go.
class %s(%s): class %s(%s):
%s %s
@ -187,7 +192,7 @@ def main():
name = name[:-3] name = name[:-3]
fd = file(name + '.py', 'w') 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() fd.close()
print 'Your new plugin template is %s.py.' % name print 'Your new plugin template is %s.py.' % name