Skip to content

Conversation

@Exirel
Copy link
Contributor

@Exirel Exirel commented Dec 21, 2020

Description

Fix #1746

Add a new reminders command with subcommands:

  • .reminders will use the count subcommand by default
  • .reminders count will count all reminders in the current target (either the current channel or in private messages)
  • .reminders forget will forget all reminders in the current target (either the current channel or in private messages)
  • using a third argument will limit each action to that target
  • using * (wildcard) as the target will act on all possible targets, i.e. all the channels and in private messages

For example .reminders count * will give you the sum of all reminders from every channels and every private message for you (and you only); and using .reminders forget in a private message will make the bot forget about your private reminders only.

Note: I decided to do something simple, that doesn't try to be too smart, it's not made for admin to reset everything, etc. but I think it's already a good improvement. I wish I had time to rework the plugin (there is a repo for that, I know!), but for now, and for 7.1, that will do.

Also: yay, a Feature PR and not a Bugfix/Documentation/Tweak PR!

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
  • I have tested the functionality of the things this change touches

Add a new `reminders` command with subcommands:

* `.reminders` will use the `count` subcommand by default
* `.reminders count` will count all reminders in the current target
 (either the current channel or in private messages)
* `.reminders forget` will forget all reminders in the current target
 (either the current channel or in private messages)
* using a third argument will limit each action to that target
* using `*` (wildcard) as the target will act on all possible targets,
 i.e. all the channels and in private messages

For example `.reminders count *` will give you the sum of all reminders
from every channels and every private message for **you** (and you
only); and using `.reminders forget` in a private message will make the
bot forget about your private reminders only.
@Exirel Exirel added the Feature label Dec 21, 2020
@Exirel Exirel added this to the 7.1.0 milestone Dec 21, 2020
@Exirel Exirel requested a review from dgw January 26, 2021 22:54
Copy link
Member

@dgw dgw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do like this idea. Just had a thought about either being "smarter" or giving feedback to the user if they forget the action (e.g. .reminders dgw). Choose your fighter. 😁

@Exirel
Copy link
Contributor Author

Exirel commented Jan 31, 2021

I do like this idea. Just had a thought about either being "smarter" or giving feedback to the user if they forget the action (e.g. .reminders dgw). Choose your fighter. grin

Got it working, I think.

Copy link
Member

@dgw dgw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not even going to have you squash this. I don't want to wait three hours for Travis to rebuild it. 😂

@dgw dgw merged commit f4d4724 into sopel-irc:master Feb 2, 2021
@Exirel Exirel deleted the reminder-user-reset branch May 1, 2021 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reminder: allow a user to reset its reminders

2 participants