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

Example of available commands #102

Open
caywin25 opened this issue Mar 25, 2021 · 3 comments
Open

Example of available commands #102

caywin25 opened this issue Mar 25, 2021 · 3 comments

Comments

@caywin25
Copy link

Hello,

Thank you for your work.
Sorry, this is not a problem, but I can't use the available commands, I don't read javascript well.

Could you give me some examples on how to use the thread command please?

An example of a command to edit or delete messages?

A small list with examples of how to use the different @slack commands.

Thanks :)

@caywin25 caywin25 changed the title Example of available orders Example of available commands Mar 25, 2021
@caywin25
Copy link
Author

For example I can answer in a thread but not create a thread.
I can't delete my messages or edit them either.

@WillForan
Copy link

Is there a good places to add @slack examples and notes? Maybe a wiki page or in the readme?

so far I have:

history

uses https://api.slack.com/methods/conversations.history

  • translates -l to limit
  • notifies slack's json response
21:18 <will> test again
21:18 <will> @slack history -l 1
21:18 -- Notice(irslackd): {"type":"message","text":"test again","user":"U04EMK30W","ts":"1663031889.716039","team":"T04EMK30U","blocks":[{"type":"rich_text","block_id":"kVx","elements":[{"type":"rich_text_section","elements":[{"type":"text","text":"test again"}]}]}]}

react

forwards to https://api.slack.com/methods/reactions.add and needs timestamp and name.

  • timestamp (10.6 digit) can be fetched from @slack history -- but someone must have a more ergonomic method.
  • name is the emoji name (sans surrounding :)
21:19 <will> @slack react 1663031889.716039 thumbsup
21:19  * will reacts @ will :+1:

thread

https://api.slack.com/methods/conversations.replies

@slack thread seems to be for thread history, not for starting/responding to a thread (?)

@adsr
Copy link
Owner

adsr commented Sep 13, 2022

A wiki page would be great.

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