Giter VIP home page Giter VIP logo

slackteams's Introduction

slackteams

Covrpage Summary Lifecycle: experimental R-win build status R-mac build status R-linux build status Codecov test coverage

slackteams is a part of slackverse

slackcalls

↙️⬇️↘️
slackthreads
slackteams

⬅️➡️
slackblocks

⬇️
slackreprex

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

The package queries the slackr-app database to set the environment variables needed by slackr.

Installation

remotes::install_github("yonicd/slackteams")

Create an Incoming Webhook

The following button will create a Slack incoming webhook with the correct scope to your Slack team.

Add to Slack

Button Directions

  1. Click the button
  2. Select the team to install the application
  3. Select the default channel to post to (this can be changed later)
  4. If successful a SLACK_KEY_ID will be returned. 👈 🚨 Keep this Key 🚨
  5. If not successful an error message will be returned.
  6. To keep the data safe you need your team MEMBERID to authenticate the SLACK_KEY_ID. How to locate your Member ID
  7. Paste the output into a json file. Default path that slackteams looks for the file is ~/.slackteams.

slackr.json

This is an example of the json file. Here we have 2 teams: slackr and r4ds. Each one contains a key (from slackr-app) and the paired user memberid.

{
  "slackr": {
    "key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "memberid": "UABC123"
  },
  "r4ds": {
    "key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "memberid": "UXYZ456"
  }
}

Basic Usage

library(slackteams)

Load the teams

slackteams::load_teams()

Activate a Team

slackteams::activate_team('r4ds')

Post a Message

slackr::slackr('My Spiffy Message')

Activate Another Team

slackteams::activate_team('slackr')

Post a Message

slackr::slackr('My Other Spiffy Message')

slackteams's People

Contributors

yonicd avatar kabhatia7 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.