From 3db2904ed08c9da1fdcbccfca210d222661b0af1 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 1 Sep 2004 06:06:54 +0000 Subject: [PATCH] Updated for new authors abstraction (single points of control are good). --- __init__.py | 9 +++++++++ plugins/Alias.py | 4 +++- plugins/Amazon.py | 4 +++- plugins/Babelfish.py | 4 +++- plugins/ChannelLogger.py | 4 +++- plugins/ChannelRelay.py | 4 +++- plugins/Currency.py | 4 +++- plugins/Debian.py | 4 +++- plugins/Dunno.py | 8 +++++++- plugins/Ebay.py | 8 +++++--- plugins/Enforcer.py | 4 +++- plugins/Format.py | 4 +++- plugins/KeepAlive.py | 4 +++- plugins/Later.py | 4 +++- plugins/MoobotFactoids.py | 4 +++- plugins/NickCapture.py | 4 +++- plugins/Nickometer.py | 4 +++- plugins/Poll.py | 5 ++++- plugins/Project.py | 4 +++- plugins/Relay.py | 4 +++- plugins/Scheduler.py | 4 +++- plugins/Services.py | 3 +++ plugins/Sourceforge.py | 4 +++- plugins/Tail.py | 4 +++- plugins/Todo.py | 5 ++++- plugins/Topic.py | 4 +++- plugins/UserInfo.py | 4 +++- plugins/Utilities.py | 4 +++- plugins/XMLLogger.py | 4 +++- src/Admin.py | 4 +++- src/Channel.py | 4 +++- src/Config.py | 4 +++- src/Misc.py | 4 +++- src/Owner.py | 4 +++- src/User.py | 4 +++- 35 files changed, 119 insertions(+), 35 deletions(-) diff --git a/__init__.py b/__init__.py index 745ed67ad..9937743fe 100644 --- a/__init__.py +++ b/__init__.py @@ -40,4 +40,13 @@ othersDir = os.path.join(installDir, 'others') sys.path.insert(0, srcDir) sys.path.insert(0, othersDir) +class authors: # This is basically a bag. + jemfinch = 'Jeremy Fincher (jemfinch) ' + jamessan = 'James Vega (jamessan) ' + strike = 'Daniel DiPaolo (Strike) ' + baggins = 'William Robinson (baggins) ' + skorobeus = 'Kevin Murphy (Skorobeus) ' + inkedmn = 'Brett Kelly (inkedmn) ' + + # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: diff --git a/plugins/Alias.py b/plugins/Alias.py index 0c29b2eba..555cea67e 100644 --- a/plugins/Alias.py +++ b/plugins/Alias.py @@ -33,8 +33,10 @@ Allows aliases for other commands. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/Amazon.py b/plugins/Amazon.py index fe03836fd..e2e775800 100644 --- a/plugins/Amazon.py +++ b/plugins/Amazon.py @@ -33,8 +33,10 @@ Amazon module, to use Amazon's Web Services. """ +import supybot + __revision__ = "$Id$" -__author__ = "James Vega (jamessan) " +__author__ = supybot.authors.jamessan import getopt import supybot.plugins as plugins diff --git a/plugins/Babelfish.py b/plugins/Babelfish.py index de5abe639..58e9e16c7 100644 --- a/plugins/Babelfish.py +++ b/plugins/Babelfish.py @@ -33,8 +33,10 @@ Babelfish-related commands. """ +import supybot + __revision__ = "$Id$" -__author__ = "James Vega (jamessan) " +__author__ = supybot.authors.jamessan import sets import random diff --git a/plugins/ChannelLogger.py b/plugins/ChannelLogger.py index 81e36c12e..a7e629fc3 100644 --- a/plugins/ChannelLogger.py +++ b/plugins/ChannelLogger.py @@ -33,8 +33,10 @@ Logs each channel to its own individual logfile. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/ChannelRelay.py b/plugins/ChannelRelay.py index c612cadbb..65b49ed6a 100644 --- a/plugins/ChannelRelay.py +++ b/plugins/ChannelRelay.py @@ -35,8 +35,10 @@ another channel on the same network. If you're interested in relaying messages between channels on different networks, check out the Relay plugin. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/Currency.py b/plugins/Currency.py index 9dacbc331..09a853ae7 100644 --- a/plugins/Currency.py +++ b/plugins/Currency.py @@ -34,8 +34,10 @@ Provides commands which interface with various websites to perform currency conversions. """ +import supybot + __revision__ = "$Id$" -__author__ = '' +__author__ = supybot.authors.jamessan import re diff --git a/plugins/Debian.py b/plugins/Debian.py index 185811911..cad078043 100644 --- a/plugins/Debian.py +++ b/plugins/Debian.py @@ -33,8 +33,10 @@ This is a module to contain Debian-specific commands. """ +import supybot + __revision__ = "$Id$" -__author__ = "James Vega (jamessan) " +__author__ = supybot.authors.jamessan import re import gzip diff --git a/plugins/Dunno.py b/plugins/Dunno.py index 5e2f4a8c9..bdba31600 100644 --- a/plugins/Dunno.py +++ b/plugins/Dunno.py @@ -35,8 +35,14 @@ random 'I dunno'-like responses. If you want something spicier than ' is not a valid command'-like responses, use this plugin. """ +import supybot + __revision__ = "$Id$" -__author__ = "Daniel DiPaolo (Strike) " +__author__ = supybot.authors.strike + +__contributors__ = { + supybot.authors.jemfinch: ['Flatfile DB implementation.'], + } import os import csv diff --git a/plugins/Ebay.py b/plugins/Ebay.py index 1bda53566..0a8c02153 100644 --- a/plugins/Ebay.py +++ b/plugins/Ebay.py @@ -33,13 +33,15 @@ Accesses eBay.com for various things """ +import supybot + +__revision__ = "$Id$" +__author__ = supybot.authors.jamessan + import re import sets import getopt -__revision__ = "$Id$" -__author__ = "James Vega (jamessan) " - import supybot.conf as conf import supybot.utils as utils import supybot.plugins as plugins diff --git a/plugins/Enforcer.py b/plugins/Enforcer.py index 6088b1762..19c8bc9e6 100644 --- a/plugins/Enforcer.py +++ b/plugins/Enforcer.py @@ -36,8 +36,10 @@ auto-opping, auto-halfopping, or auto-voicing, as well as cycling an otherwise empty channel in order to get ops. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/Format.py b/plugins/Format.py index 724f54dbe..944c28005 100644 --- a/plugins/Format.py +++ b/plugins/Format.py @@ -33,8 +33,10 @@ Provides simple commands for formatting text on IRC. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/KeepAlive.py b/plugins/KeepAlive.py index ae4fdd09c..63a056f5d 100644 --- a/plugins/KeepAlive.py +++ b/plugins/KeepAlive.py @@ -36,8 +36,10 @@ to write. It also shows how much better our plugin interface and configuration API is. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/Later.py b/plugins/Later.py index a051a8fe4..4ab735c14 100644 --- a/plugins/Later.py +++ b/plugins/Later.py @@ -35,8 +35,10 @@ nicks, it's an easy way to tell users who refuse to register notes when they arrive later. """ +import supybot + __revision__ = "$Id$" -__author__ = '' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/MoobotFactoids.py b/plugins/MoobotFactoids.py index 694897d24..34c47b852 100644 --- a/plugins/MoobotFactoids.py +++ b/plugins/MoobotFactoids.py @@ -36,8 +36,10 @@ command, it checks the factoid database for a key that matches what was said and if nothing is found, responds with an entry from the "dunno" database. """ +import supybot + __revision__="$Id$" -__author__ = "Daniel DiPaolo (Strike) " +__author__ = supybot.authors.strike import supybot.plugins as plugins diff --git a/plugins/NickCapture.py b/plugins/NickCapture.py index 59decbf89..0b1e7d942 100644 --- a/plugins/NickCapture.py +++ b/plugins/NickCapture.py @@ -34,8 +34,10 @@ This module attempts to capture a specific nick, watching for an oppurtunity to switch to that nick. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/Nickometer.py b/plugins/Nickometer.py index 358dbe0bb..55e0c4b27 100644 --- a/plugins/Nickometer.py +++ b/plugins/Nickometer.py @@ -52,8 +52,10 @@ provides one command (called nickometer) which will tell you how 'lame' an IRC nick is. It's an elitist hacker thing, but quite fun. """ +import supybot + __revision__ = '$Id$' -__author__ = 'William Robinson (baggins) ' +__author__ = supybot.authors.baggins import supybot.plugins as plugins diff --git a/plugins/Poll.py b/plugins/Poll.py index d7d4f8c5b..f82a6b212 100644 --- a/plugins/Poll.py +++ b/plugins/Poll.py @@ -34,8 +34,11 @@ A module for managing and voting on polls. """ +import supybot + __revision__ = "$Id$" -__author__ = "Daniel DiPaolo (Strike) " +__author__ = supybot.authors.strike + import supybot.plugins as plugins import os diff --git a/plugins/Project.py b/plugins/Project.py index 1cfa5dd66..83fd80a26 100644 --- a/plugins/Project.py +++ b/plugins/Project.py @@ -33,8 +33,10 @@ This plugin handles public collaboration on projects in channels. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/Relay.py b/plugins/Relay.py index c7af90851..aa52493ab 100644 --- a/plugins/Relay.py +++ b/plugins/Relay.py @@ -33,8 +33,10 @@ Handles relaying between networks. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/Scheduler.py b/plugins/Scheduler.py index 440d761f3..4a2f3aa87 100644 --- a/plugins/Scheduler.py +++ b/plugins/Scheduler.py @@ -34,8 +34,10 @@ Gives the user the ability to schedule commands to run at a particular time, or repeatedly run at a particular interval. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/Services.py b/plugins/Services.py index 69360ea2e..73d02f35b 100644 --- a/plugins/Services.py +++ b/plugins/Services.py @@ -33,7 +33,10 @@ Services: Handles management of nicks with NickServ, and ops with ChanServ. """ +import supybot + __revision__ = "$Id$" +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/Sourceforge.py b/plugins/Sourceforge.py index b2694af63..b5563091c 100644 --- a/plugins/Sourceforge.py +++ b/plugins/Sourceforge.py @@ -33,8 +33,10 @@ Accesses Sourceforge.net for various things """ +import supybot + __revision__ = "$Id$" -__author__ = "James Vega (jamessan) " +__author__ = supybot.authors.jamessan import re import sets diff --git a/plugins/Tail.py b/plugins/Tail.py index d3c9b65ea..b7d35dc87 100644 --- a/plugins/Tail.py +++ b/plugins/Tail.py @@ -34,8 +34,10 @@ Messages a list of targets when new lines are added to any of a list of files, much like "tail -f" does on UNIX. """ +import supybot + __revision__ = "$Id$" -__author__ = '' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/Todo.py b/plugins/Todo.py index f69e98d02..5c4b4867c 100644 --- a/plugins/Todo.py +++ b/plugins/Todo.py @@ -34,8 +34,11 @@ The Todo plugin allows registered users to keep their own personal list of tasks to do, with an optional priority for each. """ +import supybot + __revision__ = "$Id$" -__author__ = "Daniel DiPaolo (Strike) " +__author__ = supybot.authors.strike + import supybot.plugins as plugins import glob diff --git a/plugins/Topic.py b/plugins/Topic.py index 712639417..d75b672ee 100644 --- a/plugins/Topic.py +++ b/plugins/Topic.py @@ -33,8 +33,10 @@ Provides commands for manipulating channel topics. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/UserInfo.py b/plugins/UserInfo.py index c5bd6fd98..53176cc59 100644 --- a/plugins/UserInfo.py +++ b/plugins/UserInfo.py @@ -33,8 +33,10 @@ Maintains various arbitrary information on users. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/Utilities.py b/plugins/Utilities.py index e2da90c92..0e7018f7d 100644 --- a/plugins/Utilities.py +++ b/plugins/Utilities.py @@ -33,8 +33,10 @@ Various utility commands, mostly useful for manipulating nested commands. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/plugins/XMLLogger.py b/plugins/XMLLogger.py index 338154fc3..e1c07d76a 100644 --- a/plugins/XMLLogger.py +++ b/plugins/XMLLogger.py @@ -33,8 +33,10 @@ Logs all the messages the bot receives to XML. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.plugins as plugins diff --git a/src/Admin.py b/src/Admin.py index 5d5823e47..3f753239e 100755 --- a/src/Admin.py +++ b/src/Admin.py @@ -34,8 +34,10 @@ These are commands useful for administrating the bot; they all require their caller to have the 'admin' capability. This plugin is loaded by default. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.fix as fix diff --git a/src/Channel.py b/src/Channel.py index 6344d1a9b..cff29be54 100755 --- a/src/Channel.py +++ b/src/Channel.py @@ -34,8 +34,10 @@ Basic channel management commands. Many of these commands require their caller to have the .op capability. This plugin is loaded by default. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.fix as fix diff --git a/src/Config.py b/src/Config.py index f8aa45f2a..bffc79004 100644 --- a/src/Config.py +++ b/src/Config.py @@ -33,8 +33,10 @@ Handles configuration of the bot while it's running. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import os import getopt diff --git a/src/Misc.py b/src/Misc.py index 2609dd596..f5727b0f7 100755 --- a/src/Misc.py +++ b/src/Misc.py @@ -33,8 +33,10 @@ Miscellaneous commands. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.fix as fix diff --git a/src/Owner.py b/src/Owner.py index fc686d67e..19225d280 100644 --- a/src/Owner.py +++ b/src/Owner.py @@ -34,8 +34,10 @@ Provides commands useful to the owner of the bot; the commands here require their caller to have the 'owner' capability. This plugin is loaded by default. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.fix as fix diff --git a/src/User.py b/src/User.py index 5f0f4750a..cdc3e3522 100755 --- a/src/User.py +++ b/src/User.py @@ -33,8 +33,10 @@ Provides commands useful to users in general. This plugin is loaded by default. """ +import supybot + __revision__ = "$Id$" -__author__ = 'Jeremy Fincher (jemfinch) ' +__author__ = supybot.authors.jemfinch import supybot.fix as fix