/usr/lib/python2.7/dist-packages/gplugs/hello.py is in gozerbot 0.99.1-5.
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 | # plugs/hello.py
#
#
__copyright__ = 'this file is in the public domain'
from gozerbot.commands import cmnds
from gozerbot.examples import examples
from gozerbot.plughelp import plughelp
from gozerbot.tests import tests
plughelp.add('hello', 'hello world like plugin (used as example)')
def handle_hello(bot, ievent):
""" say hello nickname """
ievent.reply('hello ' + ievent.nick)
cmnds.add('hello', handle_hello, 'USER')
examples.add('hello', "hello 'world' example", 'hello')
tests.add('hello', 'hello')
|