aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-06-11 13:34:31 +0200
committerPatrick Spek <p.spek@tyil.nl>2020-06-11 13:34:31 +0200
commit1f80a131c3a050fc0db544789fee7f03c0f2026f (patch)
treed106ed20459fe4b96c06ec17ab12ae4a6c22ba65
parent5d172bf2a8ee08e3a25a9b0ac6fa1cd13feb4bb1 (diff)
downloadIRC::Client::Plugin::Reminders-1f80a131c3a050fc0db544789fee7f03c0f2026f.tar.gz
IRC::Client::Plugin::Reminders-1f80a131c3a050fc0db544789fee7f03c0f2026f.tar.bz2
Add TODOs
-rw-r--r--lib/IRC/Client/Plugin/Reminders.rakumod15
-rw-r--r--t/01-grammar.rakutest13
2 files changed, 12 insertions, 16 deletions
diff --git a/lib/IRC/Client/Plugin/Reminders.rakumod b/lib/IRC/Client/Plugin/Reminders.rakumod
index c74f4af..0c64ea4 100644
--- a/lib/IRC/Client/Plugin/Reminders.rakumod
+++ b/lib/IRC/Client/Plugin/Reminders.rakumod
@@ -23,10 +23,11 @@ method reload-config (
self.TWEAK;
}
-# TODO: Set a reminder: "bot: remind me to <something> in <delay>"
multi method irc-to-me (
$event where *.text.starts-with('remind me'),
) {
+ # TODO: Allow people to set reminders for others?
+
my $result = ReminderGrammar.parse(
$event.text,
:actions(ReminderActions),
@@ -38,12 +39,20 @@ multi method irc-to-me (
dd %reminder<delay>.Str;
+ # TODO: Record the reminder entry in the database
+
"Reminding you to {%reminder<subject>} on {%reminder<delay>.at}"
}
-# TODO: Regularly check for reminders to post about
multi method irc-started () {
- .warning("IRC::Client::Plugin::Reminders.irc-started") with $*LOG;
+ # TODO: Check for usable $*DATABASE
+
+ # TODO: Check tables for reminders that were missed while the bot was
+ # offline.
+
+ # TODO: Check for things to remind for periodically
+
+ .debug("IRC::Client::Plugin::Reminders.irc-started") with $*LOG;
}
=begin pod
diff --git a/t/01-grammar.rakutest b/t/01-grammar.rakutest
deleted file mode 100644
index f282927..0000000
--- a/t/01-grammar.rakutest
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env raku
-
-use v6.d;
-
-use Test;
-
-use IRC::Client::Plugin::Reminders::Grammar;
-use IRC::Client::Plugin::Reminders::Actions;
-
-constant ReminderGrammar = IRC::Client::Plugin::Reminders::Grammar;
-constant ReminderActions = IRC::Client::Plugin::Reminders::Actions;
-
-dd ReminderGrammar.parse('Remind me to get in on the action in 1 hour', :actions(ReminderActions)).made;