~ubuntu-branches/ubuntu/precise/gozerbot/precise

« back to all changes in this revision

Viewing changes to gozerplugs/plugs/autoreply.py

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Malcolm
  • Date: 2008-06-02 19:26:39 UTC
  • mfrom: (1.1.3 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080602192639-3rn65nx4q1sgd6sy
Tags: 0.8.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#
3
3
#
4
4
 
5
 
""" do autoreply on incoming jabber private messages except commands """
 
5
""" do autoreply on incoming jabber private messages except commands. to enable
 
6
 use autoreply-cfg txt <message to send>. """
6
7
 
7
8
__copyright__ = 'this file is in the public domain'
8
9
 
16
17
cfg = PersistConfig()
17
18
cfg.define('txt', "")
18
19
 
19
 
plughelp.add('autoreply', 'do an autoreply on all incoming jabber private \
20
 
messages except commands')
 
20
plughelp.add('autoreply', 'jabber autoreply')
21
21
 
22
22
def preautoreply(bot, ievent):
23
23
    """ check where autoreply callbacks should fire """