ThisisacompletereworkingoftheoriginalRemindMebotImadeusingpython(hostedoverhere)
Ifeellikethisbotwillbebetterabletoparsemessagesandschedulingreplies
Feelfreetocontributeifyouwant!
RunningpersonalversionYou'llneedtosetyourdatabasesettingsindb.yml.ExamplesareprovidedforMySQLandSQLiteconfigs(db.ex_mysql.ymlanddb.ex_sqlite.yml,respectively).ForabarebonesSQLitesetupdothis:
cpdb.ex_sqlite.ymldb.ymlWhenrunningthebotyouneedtospecifyaninstanceandprovideamastodonaccesstokenonthecommandline
Somethinglike:
TOKEN='your_access_token_here'INSTANCE='https://your_cool_instan.ce'bundleexecrubymain.rbFeaturesschedulingreminders(seeTimeInputSpecificationsbelow)cancelingremindersthathaveyettogooffsaving/restoringtoa(MySQL/MariaDB/SQLite)databaseTimeinputspecificationsAsofrightnowthebotisonlyabletoparsetimesthatcomeincertainformats:
HH:MM:SSPMTZD(secondsfieldisoptional,asareminutes.AM/PMisneededifspecifiying12hourtime)Nseconds(ordays/hours/weeks/minutes)Tomakethestatustothebotfeelmorelikenaturallanguageyoucanalsosupplysomethinglike:
inNsecondsatHH:MMTZDitwillstillparseouttothecorrecttime
TODOcommandtorepeataremindernewlinesnotreturnedproperlyinreminderstatus?makebotlessspammywith!helpmessage
评论