I am trying to figure out how to subscribe to presence changes in Slack via Botkit's startRTM call. Currently I'm using Botkit's starter slack bot which has an rtm_manager script for handling all rtm starts and closes.
bot.startRTM(function(err, bot) {
...do stuff
});
I've looked into Slack's new way of subscribing to presence events, and understand that I need to send a presence_sub or batch_presence_aware parameter in order to subscribe to the presence_change event.
I've also looked at the documentation for the node-slack-sdk rtm client for handling presence updates, which uses rtm.start itself
rtm.start({
batch_presence_aware: true
});
Since I am using botkit, which uses a startRTM method, I am struggling to understand how to combine all of this information. Is there any documentation or examples for subscribing to presence updates while using botkit's startRTM method?