ubot2/docs/example-plugins/repeat.py
Jeff Ammons 3cd9b9a828 Standardizing docs between python-slackclient and rtmbot
Added copyright to License File
Added standard format for issues/PRs
Added Code of Conduct
Moved doc/ to docs/
2016-07-09 10:13:52 -07:00

12 lines
342 B
Python

from __future__ import unicode_literals
# don't convert to ascii in py2.7 when creating string to return
crontable = []
outputs = []
def process_message(data):
if data['channel'].startswith("D"):
outputs.append([data['channel'], "from repeat1 \"{}\" in channel {}".format(
data['text'], data['channel'])]
)