Skip to content

Commit

Permalink
YOU ol' print-n-send, you
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowfiend committed Nov 4, 2023
1 parent 7426739 commit 9cd00e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion discord-scripts/blow-everything-up.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export default async function webhookDiscord(
return { thread, lastActivity: moment(lastActivity) }
}))).filter(({ lastActivity }) => lastActivity.isBefore(archiveThreshold))

msg.reply(`Threads to archive:\n- ${threadsWithDates.map(({ thread, lastActivity }) => `${thread.type === ChannelType.GuildPrivateThread ? "[private]" : thread.name}: ${lastActivity.toLocaleString()}`).join("\n- ")}`)
const message = `Threads to archive:\n- ${threadsWithDates.map(({ thread, lastActivity }) => `${thread.type === ChannelType.GuildPrivateThread ? "[private]" : thread.name}: ${lastActivity.toLocaleString()}`).join("\n- ")}`
console.log(message)
msg.reply(message)
})
})
}

0 comments on commit 9cd00e2

Please sign in to comment.