bot-meetingplace-events

所属分类:collect
开发工具:Ruby
文件大小:0KB
下载次数:0
上传日期:2022-03-25 19:58:09
上 传 者sh-1993
说明:  一个友好的机器人,在下一个事件发生时为我们提供提示。,
(A friendly bot to give us a heads up when the next events are.,)

文件列表:
.ruby-version (6, 2022-03-25)
CHANGELOG.md (6307, 2022-03-25)
CODE_OF_CONDUCT.md (8111, 2022-03-25)
Gemfile (425, 2022-03-25)
Gemfile.lock (4505, 2022-03-25)
LICENSE (1068, 2022-03-25)
Rakefile (1153, 2022-03-25)
app.json (831, 2022-03-25)
lib/ (0, 2022-03-25)
lib/meeting_place/ (0, 2022-03-25)
lib/meeting_place/event.rb (786, 2022-03-25)
lib/meeting_place/events.rb (652, 2022-03-25)
lib/virtual_coffee_bot.rb (243, 2022-03-25)
lib/virtual_coffee_bot/ (0, 2022-03-25)
lib/virtual_coffee_bot/reports/ (0, 2022-03-25)
lib/virtual_coffee_bot/reports/next_event.rb (776, 2022-03-25)
lib/virtual_coffee_bot/reports/this_weeks_events.rb (1454, 2022-03-25)
lib/virtual_coffee_bot/reports/todays_events.rb (517, 2022-03-25)
spec/ (0, 2022-03-25)
spec/fixtures/ (0, 2022-03-25)
spec/fixtures/files/ (0, 2022-03-25)
spec/fixtures/files/meetingplace.io/ (0, 2022-03-25)
spec/fixtures/files/meetingplace.io/events.json (688, 2022-03-25)
spec/meeting_place/ (0, 2022-03-25)
spec/meeting_place/event_spec.rb (684, 2022-03-25)
spec/meeting_place/events_spec.rb (570, 2022-03-25)
spec/spec_helper.rb (367, 2022-03-25)
spec/virtual_coffee_bot/ (0, 2022-03-25)
spec/virtual_coffee_bot/reports/ (0, 2022-03-25)
spec/virtual_coffee_bot/reports/next_event_spec.rb (1099, 2022-03-25)
spec/virtual_coffee_bot/reports/this_weeks_events_spec.rb (1374, 2022-03-25)
spec/virtual_coffee_bot/reports/todays_events_spec.rb (1125, 2022-03-25)

# 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](https://meetingplace.io/api/v1/group/virtual-coffee/events.json). ## Sample Output ![Slack Message showing this weeks events](https://user-images.githubusercontent.com/325384/123550836-fbefcc80-d734-11eb-9519-ce0642abdd28.png) ![Daily Reminder & Pre Event reminder](https://user-images.githubusercontent.com/325384/123550882-204ba900-d735-11eb-824c-b431cddc9f4d.png) ``` *Next Event:* Virtual Coffee - Morning Crowd Starting in 10 minutes! ``` ## 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](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets) to be setup: | Secret | Source | Purpose | | ----------------- | ----------------------------------------------------------- | ----------------------------------------- | | `SLACK_API_TOKEN` | [Bot User OAuth Access Token](https://api.slack.com/apps/) | This 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 Task | When it should be run | Purpose | Crontab | | -------------------------------------- | ------------------------------------ | ----------------------------------------------------- | -------------| | `virtual_coffee_bot:next_event` | Hourly ~15 minutes before the hour | Gives a heads up that a new meeting is about to start | `45 * * * *` | | `virtual_coffee_bot:todays_events` | Every morning at 8am (Except Monday) | Tells us in the morning an event will happen that day | `0 8 * * *` | | `virtual_coffee_bot:this_weeks_events` | Every Monday at 8am UTC | Lists all the meetings starting that week | `0 8 * * *` |

近期下载者

相关文件


收藏者