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

[Low Priority] Make Slack replies look fancy #89

Open
Fryyyyy opened this issue May 10, 2019 · 5 comments
Open

[Low Priority] Make Slack replies look fancy #89

Fryyyyy opened this issue May 10, 2019 · 5 comments
Labels
enhancement New feature or request

Comments

@Fryyyyy
Copy link
Owner

Fryyyyy commented May 10, 2019

No description provided.

@Fryyyyy Fryyyyy added the enhancement New feature or request label May 10, 2019
@Fryyyyy
Copy link
Owner Author

Fryyyyy commented May 11, 2019

The RTM API only supports posting simple messages formatted using our default message formatting mode. It does not support attachments or other message formatting modes. To post a more complex message as a user clients can call the chat.postMessage Web API method with as_user set to true.

@Fryyyyy
Copy link
Owner Author

Fryyyyy commented May 21, 2019

Can prevent auto-unfurl on a message-by-message basis ?

slackapi/hubot-slack#157
https://api.slack.com/methods/chat.postMessage

@Fryyyyy
Copy link
Owner Author

Fryyyyy commented May 21, 2019

Link to Yawgatog in rules replies

@Fryyyyy
Copy link
Owner Author

Fryyyyy commented May 21, 2019

Link to scryfall_uri rather than Gatherer for regular card reply ? Fixed in 290af55

@Fryyyyy
Copy link
Owner Author

Fryyyyy commented May 27, 2019

Put thread requests as thread Fixed in 5b45dde

  1. Recognize threaded messages by looking for a thread_ts attribute: any message with a thread_ts attribute is part of a thread!
  2. Identify replies by noting when a threaded message's ts and thread_ts values differ. If they're equal, you're dealing with a parent.
  3. Attach your messages to a thread by specifying another message's ts value as your reply's thread_ts.
  4. When responding to a message that's part of a thread, you should keep your responses in the thread.
  5. When responding to a non-threaded message, consider creating a thread by replying to the message inciting your response.
OutgoingMessage
ThreadTimestamp string   `json:"thread_ts,omitempty"`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant