slackteams is a part of slackverse

slackcalls
slackthreads
slackteams
slackposts
slackblocks
slackreprex

slackteams is an R package that allows the user to manage multiple Slack teams during a session.

Installation

remotes::install_github("yonicd/slackteams")

Tokens

Creating a token is simple using

slackteams::add_team_interactive()

This will generate a minimal Slack api token for you to interact with the Slack. For more information on the different permissions the token can take refer to the Managing Tokens Vignette

The token team will be created, loaded and activated for you, so you can start working right away. To store this token for future sessions refer to Storing A Token.

Basic Usage

Load the teams

slackteams::load_teams()
# The following teams are loaded:
#   slackr, R4ds

Activate a Team

slackteams::activate_team('R4ds')
# slack environment variables are set to 'R4ds' supplied definitions

Query Active Team Channels

slackteams::get_team_channels()

Query Active Team Members

slackteams::get_team_users()

Activate Another Team

slackteams::activate_team('slackr')
# slack environment variables are set to 'slackr' supplied definitions