From 883cfb4a976469b2585ff4d4bf63f65a8b461fb1 Mon Sep 17 00:00:00 2001 From: Elad Ben-Israel Date: Thu, 30 May 2024 09:13:40 -0700 Subject: [PATCH] fix(slack): readme example did not compile (#251) Some names have changed. --- slack/README.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/slack/README.md b/slack/README.md index b2f2f148..2689d869 100644 --- a/slack/README.md +++ b/slack/README.md @@ -122,15 +122,9 @@ Navigate back to your Slack App, under the Event Subscriptions section, paste th If you want to post directly to a channel, you can do so by using the following code: ```js -bring slack; -bring cloud; - -let slackbot = new slack.Slackbot(); - let postMessage = new cloud.Function(inflight () => { - let channel = slackbot.getChannel("NAME|ID"); - - channel.postText("hello world!"); + let channel = bot.channel("NAME|ID"); + channel.post("hello world!"); }); ```