Skip to content

HackGT/staff-slack-hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

The Staff Slack Hub seeks to combine multiple staff slack apps used during a hackathon into one bot. As of now, these include the schedule bot (for changing event timings), buzzer ui (to send notifications), and profile pic (to add the organizer overlay). The main goal is to increase code sharing between these 3 sub-apps and provide a better framework for future extension.

Usage

To start using the app, use the slash command /hub. In order to have permission to use the app, a slack user must be in the “staff channel” as defined in config.json. The app will ask the user for OAuth permission to update their profile components and send messages as the user.

Deployment Guide

When using Google Cloud Run, you'll need to always allocate CPU. Curently, the slack app uses webhooks to update the profile pic overlay, and if CPU isn't always allocated, there will be no CPU left after the initial request response. As such, before the event when the event slack is up, change the CPU allocation setting to CPU is always allocated. Please remember to update this setting back to CPU is only allocated during request processing after the event is over to prevent excess Google Cloud charges.

Install to new Workspace

To install the app to a new workspace, visit the /installation url (ex. https://staff-slack-hub.hexlabs.org/installation). Then, select the workspace from the dropdown in the top right of the page, and install it to the new workspace. Now, any user in the workspace can access the Staff Hub commands. To change the scopes requested from the user, look in the app.js file.

Notes

From past usage, the profile pic plugin needs at least 350Mi of memory to process the images properly, so please provide at least this much in the configuration. Additionally, please make sure to update the CMS and Buzzer secrets between deployments.

About

A centralized hub for HackGT staff slack apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published