Dougley / MegaBot

Discord bot that interacts with Zendesk Community
GNU Affero General Public License v3.0
1 stars 0 forks source link

!follow <messageID> #154

Open L33t-HAXXOR opened 5 years ago

L33t-HAXXOR commented 5 years ago

Allow users to follow/subscribe to suggestions by copying the messageID of aforementioned suggestions. Available for mobile and desktop clients.

!follow for mayor 2025

Benricheson101 commented 5 years ago

That would be nice for mobile users, but it would be hard to make. The post ID is the ZenDesk post ID, not Discord message ID.

L33t-HAXXOR commented 5 years ago

I see...

Thank you for the response!

L33t-HAXXOR commented 5 years ago

@Benricheson101 Just had a thought! You mentioned above that the ZenDesk ID and the Message ID are different, however If I recall correctly, the ZenDesk ID should be retrievable from the embed footer

Could something return the ZenDesk ID from the embed.footer for that particular message ID?

For example: 1) !follow is pointed to an embed via message ID 2) It breaks down the contents of the embed, and finds the ZenDesk ID, the link and the title 3) It passes this info to a .json or sql database 4) When !sublist or !sub list is called, it prints an embed with up to 5 hyperlinked suggestions at a time using the info called from the aforementioned database 5) If you want to get fancy, the embeds could be paginated and “flipped” via reactions and timeout after x seconds

Alternatively, you could just use !sub and pass it arguments !sub add messageID - Adds a suggestion to your “subscriptions” !sub remove messageID - Deletes a suggestion from your “subscriptions” !sub list messageID - Lists your “subscriptions” in a neat embed set

That being said, this is all works in my imagination and maybe not so much in practice, I am a very naïve programmer

EDIT: Definitely !sub