Skip to content

smocky/randopicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Select a random member from a channel

Use either the /rando slash command to use the pre-coded text or use the Workflow Builder "step from app" with the channel the workflow is called from and the user who called it. Then make a step to have a message using the Random User.

This is set up to exclude the user who called the command or workflow as well as excluding all apps and bots.

Installing

Create Slack App

  1. Open https://api.slack.com/apps/new and choose "From an app manifest"
  2. Choose the workspace you want to install the application to
  3. Copy the contents of manifest.yml into the text box that says *Paste your manifest code here* and click Next
  4. Review the configuration and click Create
  5. Now click Install to Workspace and Allow on the screen that follows. You'll be redirected to the App Configuration dashboard.

Environment variables Before you can run the app, you'll need to store some environment variables.

  1. Copy .env.sample to .env
  2. Open your apps configuration page from this list, click OAuth & Permissions in the left hand menu, then copy the Bot User OAuth Token into your .env file under SLACK_BOT_TOKEN
  3. Click Basic Information from the left hand menu and follow the steps in the App-Level Tokens section to create an app-level token with the connections:write scope. Copy that token into your .env as SLACK_APP_TOKEN.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published