From 1e84fdf2cc5894d3c8ed9f138c2a1873826426b0 Mon Sep 17 00:00:00 2001 From: Richard Darst Date: Thu, 9 Dec 2010 21:23:34 -0800 Subject: [PATCH] Change supybot plugin name back to MeetBot Ignore-this: 393e3be2b8c6643d7830c36f5f274421 - Leaving it at MeetBot preserves compatibility with old configuration and is still descriptive enough. darcs-hash:20101210052334-82ea9-4482b8dcc7b945f5d6e4246f1300587efba0f1ec.gz --- {Meeting => MeetBot}/__init__.py | 0 {Meeting => MeetBot}/config.py | 0 {Meeting => MeetBot}/plugin.py | 10 +++++----- {Meeting => MeetBot}/supybotconfig.py | 2 +- {Meeting => MeetBot}/test.py | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) rename {Meeting => MeetBot}/__init__.py (100%) rename {Meeting => MeetBot}/config.py (100%) rename {Meeting => MeetBot}/plugin.py (98%) rename {Meeting => MeetBot}/supybotconfig.py (99%) rename {Meeting => MeetBot}/test.py (98%) diff --git a/Meeting/__init__.py b/MeetBot/__init__.py similarity index 100% rename from Meeting/__init__.py rename to MeetBot/__init__.py diff --git a/Meeting/config.py b/MeetBot/config.py similarity index 100% rename from Meeting/config.py rename to MeetBot/config.py diff --git a/Meeting/plugin.py b/MeetBot/plugin.py similarity index 98% rename from Meeting/plugin.py rename to MeetBot/plugin.py index 9e02508..e7a621a 100644 --- a/Meeting/plugin.py +++ b/MeetBot/plugin.py @@ -55,12 +55,12 @@ try: recent_meetings except NameError: recent_meetings = [ ] -class Meeting(callbacks.Plugin): - """Add the help for "@plugin help Meeting" here +class MeetBot(callbacks.Plugin): + """Add the help for "@plugin help MeetBot" here This should describe *how* to use this plugin.""" def __init__(self, irc): - self.__parent = super(Meeting, self) + self.__parent = super(MeetBot, self) self.__parent.__init__(irc) # Instead of using real supybot commands, I just listen to ALL @@ -294,9 +294,9 @@ class Meeting(callbacks.Plugin): # command (it does check more than I'd like). Heavy Wizardry. instancemethod = type(self.__getattr__) wrapped_function = wrap(wrapped_function, [optional('text', '')]) - return instancemethod(wrapped_function, self, Meeting) + return instancemethod(wrapped_function, self, MeetBot) -Class = Meeting +Class = MeetBot # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: diff --git a/Meeting/supybotconfig.py b/MeetBot/supybotconfig.py similarity index 99% rename from Meeting/supybotconfig.py rename to MeetBot/supybotconfig.py index 485a738..9d03293 100644 --- a/Meeting/supybotconfig.py +++ b/MeetBot/supybotconfig.py @@ -39,7 +39,7 @@ import ircmeeting.meeting as meeting import ircmeeting.writers as writers # The plugin group for configuration -MeetBotConfigGroup = conf.registerPlugin('Meeting') +MeetBotConfigGroup = conf.registerPlugin('MeetBot') class WriterMap(registry.String): """List of output formats to write. This is a space-separated diff --git a/Meeting/test.py b/MeetBot/test.py similarity index 98% rename from Meeting/test.py rename to MeetBot/test.py index 40d93be..28dba8a 100644 --- a/Meeting/test.py +++ b/MeetBot/test.py @@ -33,9 +33,9 @@ from supybot.test import * import os import sys -class MeetingTestCase(ChannelPluginTestCase): +class MeetBotTestCase(ChannelPluginTestCase): channel = "#testchannel" - plugins = ('Meeting',) + plugins = ('MeetBot',) def testRunMeeting(self): test_script = file(os.path.join("test-script-2.log.txt"))