Fetching contributors…
Cannot retrieve contributors at this time
21 lines (13 sloc) 479 Bytes
#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
from rapidsms.contrib.handlers.handlers.keyword import KeywordHandler
class EchoHandler(KeywordHandler):
Handle any message prefixed ``echo``, responding with the remainder
of the text. Useful for remotely testing internationalization.
keyword = "echo"
def help(self):
self.respond("To echo some text, send: ECHO <ANYTHING>")
def handle(self, text):