Home

Awesome

Archived

Hey there. Virtual Coffee isn't using this package any more, so we've archived it. Please feel free to fork and use on your own!

We miss you, Mike. ❤️


Bot : MeetingPlace Events

This friendly bot reports when the next event is in our Slack.

It pulls the data from the MeetingPlace API.

Sample Output

Slack Message showing this weeks events

Daily Reminder & Pre Event reminder

📅 *Next Event:* Virtual Coffee - Morning Crowd
Starting in 10 minutes! <https://meetingplace.io/virtual-coffee/events/3185|View Details>

Setting up

The bot runs on a schedule as managed by Heroku Scheduler (We did try GitHub Actions, but they proved unreliable at running on time). It requires the following secrets to be setup:

SecretSourcePurpose
SLACK_API_TOKENBot User OAuth Access TokenThis allows us to post as a bot to slack

Slack Bot Token Scopes

The following scopes need to be added to your Slack Bot to allow it to post messages.

Scope
chat:write.public
channels:read
chat:write

Scheduled Messages

Currently there are three scheduled tasks which run:

Rake TaskWhen it should be runPurposeCrontab
virtual_coffee_bot:next_eventHourly ~15 minutes before the hourGives a heads up that a new meeting is about to start45 * * * *
virtual_coffee_bot:todays_eventsEvery morning at 8am (Except Monday)Tells us in the morning an event will happen that day0 8 * * *
virtual_coffee_bot:this_weeks_eventsEvery Monday at 8am UTCLists all the meetings starting that week0 8 * * *