File tree 3 files changed +2
-6
lines changed
3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
- #! /usr/bin/env sh
2
- . " $( dirname -- " $0 " ) /_/husky.sh"
3
-
4
1
#! /usr/bin/env bash
5
2
# MIT © Sindre Sorhus - sindresorhus.com
6
3
# https://gist.github.com/sindresorhus/7996717
Original file line number Diff line number Diff line change 1
-
2
1
npm run validate
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ const constructLog = async ({
205
205
lastReport . message . author . username
206
206
} ) warned ${ previousWarnings . size + 1 } times recently, posted in ${
207
207
logs . length
208
- } channels ${ formatDistanceToNowStrict ( lastReport . message . createdAt ) } ago `;
208
+ } channels ${ formatDistanceToNowStrict ( lastReport . message . createdAt ) } before this log (<t: ${ Math . floor ( lastReport . message . createdTimestamp / 1000 ) } :R>) `;
209
209
const extra = origExtra ? `${ origExtra } \n` : "" ;
210
210
211
211
// If it has the data for a poll, use a specialized formatting function
@@ -217,7 +217,7 @@ const constructLog = async ({
217
217
warnings . push (
218
218
`[${ format ( logMessage . createdAt , "PP kk:mmX" ) } ](${ constructDiscordLink (
219
219
logMessage ,
220
- ) } ) (<t:${ logMessage . createdAt } :R>)`,
220
+ ) } ) (<t:${ Math . floor ( logMessage . createdAt . getTime ( ) / 1000 ) } :R>)`,
221
221
) ;
222
222
}
223
223
You can’t perform that action at this time.
0 commit comments