github-lines icon indicating copy to clipboard operation
github-lines copied to clipboard

Add Up and Down Arrow reaction buttons to see more code

Open Ry-DS opened this issue 4 years ago • 6 comments

It would be pretty neat if the bot reacted to its own message with up and down arrows.

Clicking them could then tell the bot to edit its own message to show more of the code in either direction.

If I have the time, I could try make this a reality!

Things to consider:

  • undo reacts to undo a scroll? Need one for each arrow possibly

Ry-DS avatar Jul 08 '20 02:07 Ry-DS

This is a really good idea, although I don't really know how this would work when a message has multiple snippets.

diogoscf avatar Jul 08 '20 05:07 diogoscf

This is a really good idea, although I don't really know how this would work when a message has multiple snippets.

Maybe we could make the bot split them into multiple messages? Or just disable this feature for multi-snippets all together?

Ry-DS avatar Jul 13 '20 00:07 Ry-DS

I certainly don't want to disable that feature, but splitting it up into multiple messages is a viable option

diogoscf avatar Jul 16 '20 17:07 diogoscf

I certainly don't want to disable that feature, but splitting it up into multiple messages is a viable option

By disabling, I was referring to the up down arrows on multi snippets haha. What do you think is the best approach?

  1. Removing support for up down arrows on multi snippets
  2. Splitting multi snippets to several messages

Once we work this out, I'll try make this feature once I get the time 🚀

Ry-DS avatar Jul 18 '20 02:07 Ry-DS

Oh that makes more sense

I think splitting multi snippets into several messages is probably the best approach.

diogoscf avatar Jul 18 '20 06:07 diogoscf

I agree! If someone wants to get more code to lookup (or the link line is linked to the line above). Just i think to add the reaction collector, and the snippets will be deleted after a timeout!

Maybe my idea help :)

Mondonno avatar Feb 15 '21 20:02 Mondonno