-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use Slack blocks instead of attachments
- Loading branch information
Showing
11 changed files
with
304 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,81 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`#nowPlayingData current track 1`] = ` | ||
"*Currently playing* | ||
30 Seconds to Mars - Echelon (30 Seconds to Mars) | ||
Position in queue 1 - 2:00/6:00" | ||
Array [ | ||
Object { | ||
"accessory": Object { | ||
"action_id": undefined, | ||
"alt_text": "Album cover", | ||
"image_url": "img", | ||
"text": undefined, | ||
"type": "image", | ||
"value": undefined, | ||
}, | ||
"elements": undefined, | ||
"fields": Array [ | ||
Object { | ||
"text": "*Artist* | ||
30 Seconds to Mars", | ||
"type": "mrkdwn", | ||
}, | ||
Object { | ||
"text": "*Track name* | ||
Echelon", | ||
"type": "mrkdwn", | ||
}, | ||
Object { | ||
"text": "*Album* | ||
30 Seconds to Mars", | ||
"type": "mrkdwn", | ||
}, | ||
Object { | ||
"text": "*Current position* | ||
2:00 / 6:00", | ||
"type": "mrkdwn", | ||
}, | ||
], | ||
"text": undefined, | ||
"type": "section", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`#nowPlayingData nothing is playing 1`] = `"Nothing is currently playing, add a track using \`search <your track>\`"`; | ||
exports[`#nowPlayingData nothing is playing 1`] = ` | ||
Array [ | ||
Object { | ||
"accessory": Object { | ||
"action_id": undefined, | ||
"alt_text": "Album cover", | ||
"image_url": "img", | ||
"text": undefined, | ||
"type": "image", | ||
"value": undefined, | ||
}, | ||
"elements": undefined, | ||
"fields": Array [ | ||
Object { | ||
"text": "*Artist* | ||
30 Seconds to Mars", | ||
"type": "mrkdwn", | ||
}, | ||
Object { | ||
"text": "*Track name* | ||
Echelon", | ||
"type": "mrkdwn", | ||
}, | ||
Object { | ||
"text": "*Album* | ||
30 Seconds to Mars", | ||
"type": "mrkdwn", | ||
}, | ||
Object { | ||
"text": "*Current position* | ||
20:00 / 1:00:00", | ||
"type": "mrkdwn", | ||
}, | ||
], | ||
"text": undefined, | ||
"type": "section", | ||
}, | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,6 +132,7 @@ module Action = { | |
[@decco] | ||
type t = { | ||
actions, | ||
response_url: string, | ||
channel, | ||
user, | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.