5
""" simple echo command """
7
__copyright__ = 'this file is in the public domain'
9
from gozerbot.tests import tests
10
from gozerbot.commands import cmnds
11
from gozerbot.examples import examples
12
from gozerbot.plughelp import plughelp
14
plughelp.add('echo', 'simply write back what you tell it')
16
def handle_echo(bot, ievent):
17
""" say back what is being said """
18
ievent.reply(ievent.rest)
20
cmnds.add('echo', handle_echo, 'USER')
21
examples.add('echo', "echo Hello World!", 'echo')
22
tests.add('echo booo', 'booo')