Skip to content

Commit

Permalink
remove mentions of bot_user_oauth_token and change to token as slackr…
Browse files Browse the repository at this point in the history
… 3.0.0 has changed that argument
  • Loading branch information
laijasmine committed Sep 3, 2021
1 parent ca75de3 commit 3b38abb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Imports:
magrittr (>= 2.0.1),
RCurl (>= 1.98-1.2),
rt (>= 1.1.0),
slackr (>= 2.0.0),
slackr (>= 3.0.0),
stringr (>= 1.4.0),
XML (>= 3.99-0.5),
xml2 (>= 1.3.2)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Please follow this closely so no emails are sent to researchers by mistake while
RT_PASSWORD="your_rt_password" # Your RT password
```

2. Set up slackbot: `slackr::slackr_setup(channel = "#awardbot", username = 'awardbot', incoming_webhook_url = Sys.getenv("SLACK_WEBHOOK_URL"), bot_user_oauth_token = Sys.getenv("SLACK_OAUTH_TOKEN"))`
2. Set up slackbot: `slackr::slackr_setup(channel = "#awardbot", username = 'awardbot', incoming_webhook_url = Sys.getenv("SLACK_WEBHOOK_URL"), token = Sys.getenv("SLACK_OAUTH_TOKEN"))`

3. Login to RT: `rt::rt_login()`

Expand Down
2 changes: 1 addition & 1 deletion inst/main_cron_script.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ rt::rt_login(Sys.getenv("RT_USER"), Sys.getenv("RT_PASSWORD"), Sys.getenv("RT_BA

slackr::slackr_setup(channel = "#awardbot", username = 'awardbot',
incoming_webhook_url = Sys.getenv("SLACK_WEBHOOK_URL"),
bot_user_oauth_token = Sys.getenv("SLACK_OAUTH_TOKEN"))
token = Sys.getenv("SLACK_OAUTH_TOKEN"))
#check awards
awardsBot::main()

Expand Down

0 comments on commit 3b38abb

Please sign in to comment.