Ruby on Rails engine for Zulip reminders
Add this line to your application's Gemfile:
gem 'zulip_remind_bot', git: 'https://github.com/SycamoreEducation/ZulipRemindBot'And then execute:
$ bundleMount in your routes config:
Rails.application.routes.draw do
mount ZulipRemindBot::Engine => '/reminders'Set up an Outgoing Webhook bot in Zulip pointing to this new route.
Create config/initializers/zulip_remind_bot.rb to populate the bot's credentials and other configuration values:
ZulipRemindBot.user = 'user@example.com'
ZulipRemindBot.pass = ''
ZulipRemindBot.token = ''
ZulipRemindBot.url = 'https://zulip.example.com'
ZulipRemindBot.tz = 'US/Central'Send a private message to your Zulip bot with the syntax <msg> | <time> to set a reminder.
go home | at 5pm
take a break | in 20 minutes
Times are parsed by the Chronic gem. See the README for examples.
The gem is available as open source under the terms of the MIT License.