From 4a7e2dba2044ecbed91729eda688f9fd6ebfc57e Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 20 Jul 2004 05:26:52 +0000 Subject: [PATCH] Example plugin helps. --- plugins/Filter.py | 5 +++++ plugins/Weather.py | 2 ++ 2 files changed, 7 insertions(+) diff --git a/plugins/Filter.py b/plugins/Filter.py index a080cf02b..083452258 100644 --- a/plugins/Filter.py +++ b/plugins/Filter.py @@ -54,6 +54,11 @@ class MyFilterProxy(object): self.s = s class Filter(callbacks.Privmsg): + """This plugin offers several commands which transform text in some way. + It also provides the capability of using such commands to 'filter' the + output of the bot -- for instance, you could make everything the bot says + be in leetspeak, or morse code, or any number of other kinds of filters. + Not very useful, but definitely quite fun :)""" def __init__(self): self.outFilters = ircutils.IrcDict() callbacks.Privmsg.__init__(self) diff --git a/plugins/Weather.py b/plugins/Weather.py index d404081b0..b0ffffd84 100644 --- a/plugins/Weather.py +++ b/plugins/Weather.py @@ -78,6 +78,8 @@ class WeatherCommand(registry.String): # Registry variables moved to the bottom to use Weather.weatherCommands. class Weather(callbacks.Privmsg): + """This should never be seen, because this plugin defines a command by + the name of 'weather' which should override this help.""" weatherCommands = ['ham', 'cnn', 'wunder'] threaded = True def callCommand(self, method, irc, msg, *L):