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

Sync starboard... Somehow... #26

Open
mrtank opened this issue Nov 20, 2020 · 5 comments
Open

Sync starboard... Somehow... #26

mrtank opened this issue Nov 20, 2020 · 5 comments

Comments

@mrtank
Copy link
Contributor

mrtank commented Nov 20, 2020

I don't know if there is a way to make some messages "important" in Discord. Maybe create a "starred" room, and maintain the messages there. But we should keep the starboard feature in Discord too.

@hrkrx
Copy link
Contributor

hrkrx commented Nov 20, 2020

it could be synced in a single message which is pinned and edited whenever the starboard changes

@butler1233
Copy link
Owner

Discord messages have Reactions, which can be used for "starring" messsges. Then messages that get starred can be pinned in the respective channel.

The bot can hook Reaction events when somebody reacts to a message, making starring easy. I'm not sure how we could star on stack though. For pulling the board from stack, I don't believe we can hook starboard events, but the starboard itself can be (and is) loaded seperately, so it may be that we simply poll regularly to see if anything is new. Combining the numbers together should get a "total stars" type figure

@hrkrx
Copy link
Contributor

hrkrx commented Nov 20, 2020

that is nicer, but more work, since there is a need to keep track of the pinned messages, and unpin them when necessary

@butler1233
Copy link
Owner

We'd need to keep track of things for an amount of time anyway. I also had the idea of having a single "starboard message" which can be eternally edited with the latest starboard content. Stops there being an endless list of pinned messages, and we can control the order depending on the amount of stars like Stack does now.

We're gonna have to keep tracking of messages anyway for edits both ways. Currently we duplicate a message in Discord when it's edited on stack, and we don't push edits to Discord at all.

@butler1233
Copy link
Owner

butler1233 commented Jun 24, 2022

For now as a sort of proof of concept, if the bot sees a message from discord get starred, it will add a ⭐ reaction to the original message. If it gets unstarred to the point of hvaing 0 stars left, the reaction will be removed.

It turns out we can hook star events 🤷‍♂️

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

No branches or pull requests

3 participants