diff --git a/doc/example-plugins/repeat.py b/doc/example-plugins/repeat.py index e13a51b..54bc581 100644 --- a/doc/example-plugins/repeat.py +++ b/doc/example-plugins/repeat.py @@ -4,5 +4,5 @@ outputs = [] def process_message(data): if data['channel'].startswith("D"): - outputs.append([data['channel'], "from repeat1: " + data['text']]) + outputs.append([data['channel'], "from repeat1 \"{}\" in channel {}".format(data['text'], data['channel']) ]) diff --git a/requirements.txt b/requirements.txt index 8650e12..f771ba9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ +pyyaml websocket-client -git+ssh://git@github.com/slackhq/python-slackclient.git@master#egg=python-slackclient +git+https://github.com/slackhq/python-slackclient.git diff --git a/rtmbot.py b/rtmbot.py index 3dbd811..a5147a2 100755 --- a/rtmbot.py +++ b/rtmbot.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import sys sys.dont_write_bytecode = True