From c2b6d855f52da766f58419b35cc233f75ff0fdd7 Mon Sep 17 00:00:00 2001 From: defaultSouth <ikr@kakao.com> Date: Thu, 3 Dec 2020 20:34:57 +0900 Subject: [PATCH] Update README.md --- python/README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/python/README.md b/python/README.md index 0a665e4..d9e159b 100644 --- a/python/README.md +++ b/python/README.md @@ -34,7 +34,25 @@ WIN10@DESKTOP:~$ pip install confluent-kafka ``` -## Slack Consumer Usage +## Slack API Producer Usage + +[Get Slack API](https://api.slack.com/) + +Invite your bot to user community channel and your developer channel. + +This producer sends a data if users post comments containing a word, "bug". + +```json +example data) +{ "USER": "ikr", "TEXT": "I found a bug! I can keep copying my items to my inventory." } +``` + +Then the consumer below, will consume the data and posts a message in your developer channel. + +"USERNAME: MESSAGE: Please see if we can fix it right here, right now" + + +## Slack API Consumer Usage Modified version of [official Confluent example](https://github.com/confluentinc/infoq-kafka-ksql) -- GitLab