Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

As a roomowner I want to replace the current pinned query message with a new one #31

Open
rschrieken opened this issue Feb 2, 2015 · 5 comments

Comments

@rschrieken
Copy link
Contributor

When the event is done I:

  • run the command completed tags so I can update the SEDE query to remove the tags that are completed by the users.
  • I run the query to get the toptag
  • I leave a message in the room I've updated the query and the tag [tag:toptag] is now on top
  • I pin that message
  • I unpin and cancel stars on the previous message about the query

The new command update query should perform above steps, except step 1.

@gunr2171
Copy link
Member

gunr2171 commented Feb 2, 2015

Should the bot be responsible for pinning the message? Just keep in mind that account will need to be a room owner.

@gunr2171 gunr2171 added this to the v1.1 milestone Feb 2, 2015
@gunr2171
Copy link
Member

gunr2171 commented Feb 2, 2015

Alternative message idea:

The query has been updated. Tags on top are now: [tag 1], [tag 2], [tag 3].

@gunr2171
Copy link
Member

gunr2171 commented Feb 4, 2015

Another possibility: use the existing Current Tag command, just improve the output to have more stuff in it.

Though this is mostly a work-around.

@Unihedro
Copy link
Member

Unihedro commented Feb 5, 2015

@rschrieken: Why not step 1 as well? SEDE queries has an API that allows retrieving results as JSON via POSTing with correct parameters as you specify.

@rschrieken
Copy link
Contributor Author

@Vincentyification but does SEDE have an api to update the query? I have the code from SEDE here and I don;t see any code path that would accomplish that....

@gunr2171 gunr2171 modified the milestones: Future, v1.1 Jan 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants