I'm trying to set up some automatized slack channels. All the content is ready and automation should work but I'm having problems with setting up slackr. There is a nice tutorial on slackr here but it is outdated as slack has changed its token styles.
dcf_file <- "api_token: [Verification Token]
channel: #bot
username: coronapush
incoming_webhook_url: [webhook_url]
write.dcf(dcf_file, file = "slackr.dcf", )
slackr_setup(config_file = "slackr.dcf", echo = T)
However this gives me:
{
"SLACK_CHANNEL": ["NA"],
"SLACK_USERNAME": ["NA"],
"SLACK_ICON_EMOJI": ["NA"],
"SLACK_INCOMING_URL_PREFIX": ["NA"],
"SLACK_API_TOKEN": ["NA"]
}
and
slackr_channels()
NULL
Thx for your help!