"Here I am, brain the size of a planet, and they tell me to take you up to the bridge. Call that job satisfaction? 'Cos I don't."
-
Clone repo
-
composer install/update
-
Setup DB (you could use
db_structure.sql
to simplify this for yourself) -
Create Slack App and get App ID
-
Activate incoming webhooks
-
Create dialog with Block Kit Builder and dump in
dialog.json
-
Set scope with OAuth & Permissions
- channels:read
- chat:write
- groups:read
- im:history
- im:read
- incoming-webhook
- mpim:read
- users:read
- users:read:email
-
Setup interactive components
-
Rename
.env.example
to.env
and fill with your settings. You can use several template-vars to make responses pretty:{TODAY}
- Dinsdag 1 oktober 2019 - (date){NOW}
- 3 (personal score today){USER_AVG}
- 3.2 (personal average score){USER_COUNT}
- 12 (count of personal scores){DAILY_AVG}
- 3 (score average today of organisation){DAILY_COUNT}
- 12 (count of organisation scores today){TOTAL_AVG}
- 3 (score average total of organisation){TOTAL_COUNT}
- 12 (count of organisation scores total)
-
Setup random trigger to
cron.php
with cron (you could usecrontab.sh
to simplify this for yourself)
- Ask at random moment every workday for job satisfaction.
- Ask for "work emotions"
- Receive messages and pipe those to a mailbox
Send dialog.json to Slack.Use Guzzle to send POST requestCatch callback from buttons - https://api.slack.com/messaging/interactivity<<<<<<< HEADUse Medoo https://medoo.in/api/new to write catches to db (stamped!)Alles nog aan elkaar beunen en voorzien van wat leuke grapjes enzo.Dotenv implementerenAdd results to hookStage 0.1SLACK_EXPIREDTXT implementerenchat.update ipv ephemeral doenHook nog weer aanpassenAdd random trigger exampleScriptje maken om die db structuur klaar te rossen voor launchRemove stuff about channels from README.mdSay something about scope in SlackRelease v0.2Add option for tagsLoad tags.jsondie tags.json maken met de db, dan kan je dat leidend houdenMake trigger connected to prev resultsindex.php verder splitten zodat emotions en decline eigen states hebben voor afvangenMeta table maken voor tagsEmotions opslaandb_structure.sql aanpassen.env.example aanpassen
Release v0.3Capture text inputMeta table maken voor users
Because HHGTTG
Because This is Spinal Tap
- Draw results on grafana dashboard.