A Slack app built with ExpressJS to be used with the Codebuddies open Slack community. greetbot helps us welcome and onboard new members and provide valuable coding resources.
Please contribute to this repository through CodeBuddies (https://github.com/codebuddies):
- Ask for an invite to our test Slack team & to our Glitch.com project account if you'd like to test/work in our staging environment.
- Clone the repo (specifically the development branch)
- Make a branch off development for your changes.
- Push your branch back to Github.
- Pull that branch to Glitch.com for viewing with our Test Slack team.
- As an alternative, use NGROK (https://ngrok.com/) with your own Slack Team for development. (see the directions below, in addition to https://api.slack.com/slack-apps for how to set up and install a custom slack app for your team account).
- Make your changes & then save/push those changes back to Github on your branch.
- Open a pull request to merge your proposed changes back into devlopment. Please note any feature or bug numbers addressed & any other important notes in your pull request comments.
This is an open source project and we welcome all developers of all skill levels. We encourage all contributors to create Issues, submit Pull Requests, and review each other's code. As such, we expect people to be open for discussion and feedback. If you want to provide feedback or comment, please make sure that your comments are constructive.
TL;DR: Be nice, we are all here to learn together.
Development contribution requires that you have your own Slack workspace as your sandbox for local development purposes. For instructions on how to make your own, see Slack's tutorial.
- Install dependencies with NPM
npm install
-
Create an
.env
file by following the same structure as.env.example
. Change theDEV_SUBDOMAIN
variable to your name without spaces. For example, if your name is Jane Fonda, then theDEV_SUBDOMAIN
value should bejanefonda
. -
Run Development mode
npm run start:dev
We have created a guide on how to set up your local version of greetbot in your Slack workspace. Read it here.
Now that you have followed the tutorials and guides linked above to a T (right??), greetbot should work in your slack workspace. Try sending a slash command by typing /welcome test
. greetbot should send you private message with a welcome message.
For bugs or other issues, feel free to file an Issue.
For ideas, join us for a discussion at the Codebuddies Slack channel, #cb-code
. You can get an invite to Codebuddies here.
MIT Licensed, see LICENSE for details.