Skip to content

Commit

Permalink
fix(slack): readme example did not compile (#251)
Browse files Browse the repository at this point in the history
Some names have changed.
  • Loading branch information
eladb authored May 30, 2024
1 parent c937acb commit 883cfb4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions slack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
});
```

Expand Down

0 comments on commit 883cfb4

Please sign in to comment.