mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 16:28:19 +00:00
fix: shrink text
This commit is contained in:
parent
13cd9bf8b4
commit
f5d06736e1
1 changed files with 4 additions and 4 deletions
|
|
@ -139,14 +139,14 @@ export async function shipUpdatesCron(app: ModifiedApp) {
|
|||
channel: `C08N1NWKEF4`,
|
||||
thread_ts: entry.root_message,
|
||||
reply_broadcast: true,
|
||||
text: update.text || "no update text huh",
|
||||
text: update.text.slice(0,3000) || "no update text huh",
|
||||
blocks: [
|
||||
{
|
||||
type: "section",
|
||||
text: {
|
||||
type: "mrkdwn",
|
||||
// TODO add the ping back
|
||||
text: `:tada: *New Update!*\n_${update.text}_ by <@${update.slack_id}>`,
|
||||
text: `:tada: *New Update!*by <@${update.slack_id}> \n${update.text.slice(0,2900)}`,
|
||||
},
|
||||
},
|
||||
// add image
|
||||
|
|
@ -163,14 +163,14 @@ export async function shipUpdatesCron(app: ModifiedApp) {
|
|||
channel: `C08N1NWKEF4`,
|
||||
thread_ts: entry.root_message,
|
||||
reply_broadcast: true,
|
||||
text: update.text || "no update text huh",
|
||||
text: update.text.slice(0,3000) || "no update text huh",
|
||||
blocks: [
|
||||
{
|
||||
type: "section",
|
||||
text: {
|
||||
type: "mrkdwn",
|
||||
// TODO add the ping back
|
||||
text: `:tada: *New Update!*\n_${update.text}_ by <@${update.slack_id}>`,
|
||||
text: `:tada: *New Update!*by <@${update.slack_id}> \n${update.text.slice(0,2900)}`,
|
||||
},
|
||||
},
|
||||
].filter(Boolean),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue