Skip to content

NotMyself/webtask-slackin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webtask Slackin Join us

Webtask Slackin is a Serverless implementation of Guillermo Rauch's Slackin for Webtask.io. It is specifically intended to address cold start issues that smaller groups have when hosting on free tier cloud providers like Heroku & Azure. If you have ever setup Slackin for your group and encountered broken badge images becuase of response timeouts, then Webtask Slackin is for you.

Features

  • A landing page you can point users to to fill in their emails and recieve an invite (https://{your wt container}.run.webtask.io/webtask-slackin).
  • A SVG badge that works well for static mediums (like GitHub README Pages).
  • Super simple deployment to Webtask.io.

Usage

To deploy the webtask from the command line, follow these steps:

Note: These steps assume you have the Wetask CLI installed and initialized.

  1. Clone the repository git clone https://github.com/NotMyself/webtask-slackin.git
  2. Update the .meta file to include your Slack team name
  3. Copy the .env_example file to a .env file
  4. Update the .env file to include your Slack API token
  5. Run the script scripts/publish

The output will look like this:

Deployment

Note: The URL at the end of the output is where your webtask is hosted.

Tips

Your team id is what you use to access your login page on Slack (eg: https://{this}.slack.com).

You can find or generate your API test token at api.slack.com/web – note that the user you use to generate the token must be an admin. You need to create a dedicated @slackin-inviter user (or similar), mark that user an admin, and use a test token from that dedicated admin user. Note that test tokens have actual permissions so you do not need to create an OAuth 2 app. Also check out the Slack docs on generating a test token.

Badges

SVG (demo)

<img src="https://{your wt container}.run.webtask.io/webtask-slackin/badge.svg">
[![Join us](https://{your wt container}.run.webtask.io/webtask-slackin/badge.svg)](https://{your wt container}.run.webtask.io/webtask-slackin/)

About

A Slackin clone for Webtask.io

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published