/usr/share/pyshared/gplugs/trac.py is in gozerbot 0.99.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # gozerplugs/trac.py
#
#
from gozerbot.commands import cmnds
from gozerbot.examples import examples
from gozerbot.aliases import aliasset
from gozerbot.persist.persistconfig import PersistConfig
from gozerbot.tests import tests
cfg = PersistConfig()
cfg.define('baseurl', 'http://dev.gozerbot.org')
def handle_tracwiki(bot, ievent):
if not ievent.rest:
ievent.missing("<item>")
return
ievent.reply('%s/wiki/%s' % (cfg.get('baseurl'), ievent.rest))
cmnds.add('trac-wiki', handle_tracwiki, 'USER')
examples.add('trac-wiki', 'give t.e.o wiki url', 'trac-wiki TracAdmin')
aliasset('wiki', 'trac-wiki')
tests.add('trac-wiki README')
|