diogoscf / github-lines

A minimal and non-intrusive multi-platform bot to display lines from GitHub (or GitLab) links
MIT License
60 stars 10 forks source link

Add Up and Down Arrow reaction buttons to see more code #4

Open Ry-DS opened 4 years ago

Ry-DS commented 4 years ago

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:

diogoscf commented 4 years ago

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

Ry-DS commented 4 years ago

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?

diogoscf commented 4 years ago

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

Ry-DS commented 4 years ago

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 🚀

diogoscf commented 4 years ago

Oh that makes more sense

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

Mondonno commented 3 years ago

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 :)