From e80a3459b264b8ca59dc87a8f02b47f2080bcfe1 Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Mon, 8 Dec 2014 15:31:55 -0800 Subject: [PATCH] clean up example and requirements --- doc/example-plugins/repeat.py | 2 +- requirements.txt | 3 ++- rtmbot.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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