mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-10-11 22:37:23 +02:00
Updated to work with the new supybot-test.
This commit is contained in:
parent
db722aa0ec
commit
8d415d7631
@ -33,6 +33,7 @@ caller to have the 'admin' capability. This plugin is loaded by default.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import supybot
|
import supybot
|
||||||
|
import supybot.world as world
|
||||||
|
|
||||||
__author__ = supybot.authors.jemfinch
|
__author__ = supybot.authors.jemfinch
|
||||||
|
|
||||||
@ -44,8 +45,8 @@ import config
|
|||||||
import plugin
|
import plugin
|
||||||
reload(plugin) # In case we're being reloaded.
|
reload(plugin) # In case we're being reloaded.
|
||||||
|
|
||||||
if hasattr(plugin, '__doc__') and plugin.__doc__:
|
if world.testing:
|
||||||
__doc__ = plugin.__doc__
|
import test
|
||||||
|
|
||||||
Class = plugin.Class
|
Class = plugin.Class
|
||||||
configure = config.configure
|
configure = config.configure
|
||||||
|
@ -33,6 +33,7 @@ to have the <channel>.op capability. This plugin is loaded by default.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import supybot
|
import supybot
|
||||||
|
import supybot.world as world
|
||||||
|
|
||||||
__author__ = supybot.authors.jemfinch
|
__author__ = supybot.authors.jemfinch
|
||||||
|
|
||||||
@ -46,9 +47,8 @@ import config
|
|||||||
import plugin
|
import plugin
|
||||||
reload(plugin) # In case we're being reloaded.
|
reload(plugin) # In case we're being reloaded.
|
||||||
|
|
||||||
# Backwards compatibility.
|
if world.testing:
|
||||||
if hasattr(plugin, '__doc__') and plugin.__doc__:
|
import test
|
||||||
__doc__ = plugin.__doc__
|
|
||||||
|
|
||||||
Class = plugin.Class
|
Class = plugin.Class
|
||||||
configure = config.configure
|
configure = config.configure
|
||||||
|
@ -32,6 +32,7 @@ Handles configuration of the bot while it is running.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import supybot
|
import supybot
|
||||||
|
import supybot.world as world
|
||||||
|
|
||||||
__author__ = supybot.authors.jemfinch
|
__author__ = supybot.authors.jemfinch
|
||||||
|
|
||||||
@ -43,9 +44,8 @@ import config
|
|||||||
import plugin
|
import plugin
|
||||||
reload(plugin) # In case we're being reloaded.
|
reload(plugin) # In case we're being reloaded.
|
||||||
|
|
||||||
# Backwards compatibility.
|
if world.testing:
|
||||||
if hasattr(plugin, '__doc__') and plugin.__doc__:
|
import test
|
||||||
__doc__ = plugin.__doc__
|
|
||||||
|
|
||||||
Class = plugin.Class
|
Class = plugin.Class
|
||||||
configure = config.configure
|
configure = config.configure
|
||||||
|
@ -32,6 +32,7 @@ Miscellaneous commands.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import supybot
|
import supybot
|
||||||
|
import supybot.world as world
|
||||||
|
|
||||||
__author__ = supybot.authors.jemfinch
|
__author__ = supybot.authors.jemfinch
|
||||||
|
|
||||||
@ -45,9 +46,8 @@ import config
|
|||||||
import plugin
|
import plugin
|
||||||
reload(plugin) # In case we're being reloaded.
|
reload(plugin) # In case we're being reloaded.
|
||||||
|
|
||||||
# Backwards compatibility.
|
if world.testing:
|
||||||
if hasattr(plugin, '__doc__') and plugin.__doc__:
|
import test
|
||||||
__doc__ = plugin.__doc__
|
|
||||||
|
|
||||||
Class = plugin.Class
|
Class = plugin.Class
|
||||||
configure = config.configure
|
configure = config.configure
|
||||||
|
@ -33,6 +33,7 @@ their caller to have the 'owner' capability. This plugin is loaded by default.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import supybot
|
import supybot
|
||||||
|
import supybot.world as world
|
||||||
|
|
||||||
__author__ = supybot.authors.jemfinch
|
__author__ = supybot.authors.jemfinch
|
||||||
|
|
||||||
@ -44,9 +45,8 @@ import config
|
|||||||
import plugin
|
import plugin
|
||||||
reload(plugin) # In case we're being reloaded.
|
reload(plugin) # In case we're being reloaded.
|
||||||
|
|
||||||
# Backwards compatibility.
|
if world.testing:
|
||||||
if hasattr(plugin, '__doc__') and plugin.__doc__:
|
import test
|
||||||
__doc__ = plugin.__doc__
|
|
||||||
|
|
||||||
Class = plugin.Class
|
Class = plugin.Class
|
||||||
configure = config.configure
|
configure = config.configure
|
||||||
|
@ -32,6 +32,7 @@ Provides commands useful to users in general. This plugin is loaded by default.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import supybot
|
import supybot
|
||||||
|
import supybot.world as world
|
||||||
|
|
||||||
__author__ = supybot.authors.jemfinch
|
__author__ = supybot.authors.jemfinch
|
||||||
|
|
||||||
@ -43,9 +44,8 @@ import config
|
|||||||
import plugin
|
import plugin
|
||||||
reload(plugin) # In case we're being reloaded.
|
reload(plugin) # In case we're being reloaded.
|
||||||
|
|
||||||
# Backwards compatibility.
|
if world.testing:
|
||||||
if hasattr(plugin, '__doc__') and plugin.__doc__:
|
import test
|
||||||
__doc__ = plugin.__doc__
|
|
||||||
|
|
||||||
Class = plugin.Class
|
Class = plugin.Class
|
||||||
configure = config.configure
|
configure = config.configure
|
||||||
|
@ -29,8 +29,6 @@
|
|||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
###
|
###
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import supybot
|
import supybot
|
||||||
|
|
||||||
import os
|
import os
|
||||||
@ -136,6 +134,7 @@ here.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import supybot
|
import supybot
|
||||||
|
import supybot.world as world
|
||||||
|
|
||||||
# XXX Replace this with an appropriate author or supybot.Author instance.
|
# XXX Replace this with an appropriate author or supybot.Author instance.
|
||||||
__author__ = supybot.authors.unknown
|
__author__ = supybot.authors.unknown
|
||||||
@ -148,9 +147,8 @@ import config
|
|||||||
import plugin
|
import plugin
|
||||||
reload(plugin) # In case we\'re being reloaded.
|
reload(plugin) # In case we\'re being reloaded.
|
||||||
|
|
||||||
# For backwards compatibility with the old Plugin format.
|
if world.testing:
|
||||||
if hasattr(plugin, '__doc__') and plugin.__doc__:
|
import test
|
||||||
__doc__ = plugin.__doc__
|
|
||||||
|
|
||||||
Class = plugin.Class
|
Class = plugin.Class
|
||||||
configure = config.configure
|
configure = config.configure
|
||||||
|
Loading…
x
Reference in New Issue
Block a user