Skip to content

Commit 242be34

Browse files
authored
Update App Update Script.js
trying block kit
1 parent bf9ac12 commit 242be34

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

Parsers/App Update Script.js

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,32 @@ if (grSBIP.get(updateObj.batch_installation_id)) {
104104
\`\`\`
105105
`;
106106

107-
const message = "<@U6E2TEKQ9> made a cool script for bulk updating apps!\n\n" + eric_script;
108-
107+
//const message = "<@U6E2TEKQ9> made a cool script for bulk updating apps!\n\n" + eric_script;
108+
const message = {
109+
"blocks": [
110+
{
111+
"type": "rich_text",
112+
"elements": [
113+
{
114+
"type": "rich_text_section",
115+
"elements": [
116+
{
117+
"type": "text",
118+
"text": "<@U6E2TEKQ9> made a cool script for bulk updating apps!\n\n"
119+
}
120+
]
121+
},
122+
{
123+
"type": "rich_text_preformatted",
124+
"elements": [
125+
{
126+
"type": "text",
127+
"text": eric_script
128+
}
129+
]
130+
}
131+
]
132+
}
133+
]
134+
}
109135
new x_snc_slackerbot.Slacker().send_chat(current, message, true);

0 commit comments

Comments
 (0)