Hey this is great! I have one small suggestion. In your last code example, you can simplify a little bit by using the client argument which Bolt passes into your listener. That client instance already knows the bot token, so you don't have to also read it from the context argument.
And actually, you can make this even shorter (but then it starts to hide some of the interesting details you might want your readers to learn). The say argument already knows about the bot token, the channel ID, and knows that the method to call is chat.postMessage:
Hey this is great! I have one small suggestion. In your last code example, you can simplify a little bit by using the
client
argument which Bolt passes into your listener. Thatclient
instance already knows the bot token, so you don't have to also read it from thecontext
argument.And actually, you can make this even shorter (but then it starts to hide some of the interesting details you might want your readers to learn). The
say
argument already knows about the bot token, the channel ID, and knows that the method to call ischat.postMessage
:Hi sorry for the late reply but you are absolutely right, thank you for this.