Slack Attendace Bot
Start
- Create slack app
- Enable
Incoming Webhooks
andEvent Subscriptions
for the app (Request URL
ismydomain/slack/events
) - Subscribe to
message.channels
events inEvent Subscriptions
- Set
CHANNEL_URL
fromWebhook URL
inIncoming Webhooks
- Set
TOKEN
,DB_URL
,CHANNEL_ID
(receive messages from) - Start server and install slack app from slack api website
To start server:
node index.js
โป Your .env
file should have CHANNEL_URL
, TOKEN
, DB_URL
, CHANNEL_ID
Usage
Send message to bot with:
-
in
Save ain
record with timestamp -
out
Save aout
record with timestamp -
list
List all records for you