-
Notifications
You must be signed in to change notification settings - Fork 636
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
Edit last message #91
Comments
Curious: what use case do you have for this? |
When a deployment is underway for example, it would be great for our Hubot to send back status updates within the same chunk of text on screen. It would also allow the use of one |
are there any news on that one? i would have another use case : i'd like to be able to add tags to a message, but sending the original message to a keyphrase extraction service and update the original message with found keywords.. wkr turnguard |
Sounds cool. The new adapter is dropping soon, hopefully we'll see something like this in there. Would be fantastic for ongoing updates that take a long time, rather than spamming messages one after the other. |
As I mentioned over in #16 the API used by the new adapter supports this - but we haven't yet built support into hubot-slack, mostly because we've not worked out how it would work in the context of hubot. Suggestions are welcome! |
👍 This would be such an awesome feature On to implementation ideas: Maybe you could return the message object you send to the server and give it methods to update and delete the text. It would probably need changes in your node-slack-client as well, but it shouldn't be too big of a change. |
thanks to slackapi/node-slack-sdk#14, the next version of node-slack-client will have the ability to edit messages. The only question left is how we'd implement this inside hubot's framework! |
As I've already commented on my pull request on node-slack-client, you get
|
@paulhammond hi, just wondering; was this ever implemented? if not, how can I use it anyways? |
Would also really like to know how to update messages. Been digging through documentation and PRs and can't figure out how. |
i can shed some light on this. there's two problems that i see:
the first problem is pretty easy to solve, because you can create your own # import the Web client code from the node-slack-sdk
{WebClient} = require '@slack/client'
module.exports = (robot) ->
# instantiate a Web client using the same bot token as the internal RTM client
web = new WebClient(robot.adapter.client.rtm.token)
# the rest of your script follows... the second problem is a little harder to solve. once a message is already sent, the adapter needs to return that message to your code so you can use the |
Much the same as pressing Up (or of course, clicking "Edit") to edit the last message, I'm wondering if it's possible to do that programmatically within hubot or the adapter.
Would be stellar if it's possible.
Does anyone have any ideas?
The text was updated successfully, but these errors were encountered: