• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

compufox/RemindMeBot: a little ruby bot for setting up reminders for users on ma ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

compufox/RemindMeBot

开源软件地址(OpenSource Url):

https://github.com/compufox/RemindMeBot

开源编程语言(OpenSource Language):

Ruby 100.0%

开源软件介绍(OpenSource Introduction):

RemindMeBot

This is a complete reworking of the original RemindMe bot I made using python (hosted over here)

I feel like this bot will be better able to parse messages and scheduling replies

Feel free to contribute if you want!

Running personal version

You'll need to set your database settings in db.yml. Examples are provided for MySQL and SQLite configs (db.ex_mysql.yml and db.ex_sqlite.yml, respectively). For a bare bones SQLite setup do this:

cp db.ex_sqlite.yml db.yml

When running the bot you need to specify an instance and provide a mastodon access token on the command line

Something like:

TOKEN='your_access_token_here' INSTANCE='https://your_cool_instan.ce' bundle exec ruby main.rb

Features

  • scheduling reminders (see Time Input Specifications below)
  • canceling reminders that have yet to go off
  • saving/restoring to a (MySQL/MariaDB/SQLite) database

Time input specifications

As of right now the bot is only able to parse times that come in certain formats:

  • HH:MM:SS PM TZD (seconds field is optional, as are minutes. AM/PM is needed if specifiying 12 hour time)
  • N seconds (or days/hours/weeks/minutes)

To make the status to the bot feel more like natural language you can also supply something like:

  • in N seconds
  • at HH:MM TZD

it will still parse out to the correct time

TODO

  • command to repeat a reminder
  • newlines not returned properly in reminder status?
  • make bot less spammy with !help message



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap