A slack self-invite service written in PHP with random and fancy background
- Just clone this repo:
git clone ssh://git@github.com/fateyan/slack-inviter.git
- Then run
composer install
- Set up environment variables
For Nginx:
fastcgi_param SLACK_TOKEN yourtoken;
fastcgi_param SLACK_DOMAIN yourdomain;
fastcgi_param SLACK_CHANNELS channel1,channel2,channel3;
fastcgi_param SLACK_HEADER "Join our Slack";
fastcgi_param SLACK_SUB_HEADER "Welcome";
fastcgi_param SLACK_INVITE_SUCCEED "Congratulations";
fastcgi_param SLACK_INVITE_FAIL "Error";
fastcgi_param RECAPTCHA_SITEKEY "key";
fastcgi_param RECAPTCHA_SECRET "key";
For Apache:
SetEnv VariableName VariableValue
Environment Variables:
Key | Description |
---|---|
SLACK_TOKEN | slack token, it can be found on https://api.slack.com/web |
SLACK_DOMAIN | |
SLACK_CHANNELS | divide by comma[,], it can be found on https://api.slack.com/methods/channel.list/test |
SLACK_HEADER | title of invite form |
SLACK_SUB_HEADER | sub title of invite form |
SLACK_TITLE | title of html |
RECAPTCHA_SITEKEY | Site key for reCaptcha, you can get it from https://www.google.com/recaptcha/admin |
RECAPTCHA_SECRET | Secret key for reCaptcha, you can get it from https://www.google.com/recaptcha/admin |
- There You Go~
Good Luck >_>~