Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add periodic messages #29

Open
mikeshultz opened this issue Sep 29, 2020 · 1 comment
Open

Add periodic messages #29

mikeshultz opened this issue Sep 29, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@mikeshultz
Copy link
Contributor

A channel admin should be able to set a period message to be sent every N minutes.

/periodic [N minutes] My message

Discontinue

/periodicstop

A secondary request for this was adding CTA buttons. This may need to be split off into a separate issue.

@mikeshultz mikeshultz added the enhancement New feature or request label Sep 29, 2020
@mikeshultz
Copy link
Contributor Author

mikeshultz commented Sep 30, 2020

This is pretty straight forward for simple messages, but adding the CTA is a little... weird. It would probably need to be a secondary command entirely. That would require something like this to assemble the whole message:

/periodic 60 OUSD is cool and you should check it out!
/periodic_cta https://ousd.com Buy OUSD!

This should produce a message that is sent every hour that looks something like this:

OUSD is cool and you should check it out!

[Buy OUSD!]

Also, it should be noted that the way the bot is built, it will send out periodic messages only if there's activity in the channel. So if there's no chat activity in an hour, the bot will not send out a message until someone else sends one that triggers the check. This might be able to work with some kind of ioloop but will require more work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant