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

Spoiler action #9

Open
3 tasks
ytturi opened this issue Apr 29, 2020 · 2 comments · Fixed by #10
Open
3 tasks

Spoiler action #9

ytturi opened this issue Apr 29, 2020 · 2 comments · Fixed by #10

Comments

@ytturi
Copy link
Owner

ytturi commented Apr 29, 2020

Trigger

> /spoiler@meldebot on reply to a message

Actions

  • Remove the messages:
    • Marked message (the spoiler)
    • Trigger message (the /spolier@meldebot)
  • Send a "spoiler" message as:
    "<@author of marked message> that's a spoiler!"
    [Spoiler button that shows the pop-up with the original message]

Example

#0 A> message: Dumbledore dies!
#1 B> reply to #0: "/spoiler@meldebot"
meldebot> remove #0
meldebot> remove #1
#4 meldebot> message: "@A that's a spoiler! [Show spoiler]"
#5 B> click on "Show spoiler" < "Dumbledore dies!"

TODO

@ytturi ytturi reopened this Aug 29, 2020
@ytturi
Copy link
Owner Author

ytturi commented Aug 29, 2020

Issues here:

  • If only text it works fine up to 150 characters which is the limit for markup arguments.

How to solve it:

  • Use a local/remote store and reply with spoilerHandler {id}
  • Implement the local store for the spoiler message:
    • User who sent the message
    • Original message text
    • Original message media
  • Implement a handler to lookup the answer on that ID

@ytturi ytturi mentioned this issue Feb 28, 2021
@ytturi
Copy link
Owner Author

ytturi commented Feb 28, 2021

This can now be implemented as we've integrated support for a database (postgresql)

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

Successfully merging a pull request may close this issue.

1 participant