3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-11 04:45:02 +00:00

Log text/style tweaks; add message date to deletion logs

This commit is contained in:
Dragory 2018-12-22 12:38:52 +02:00
parent 1dd8266405
commit 3c3602f8d3
4 changed files with 11 additions and 9 deletions

View file

@ -51,7 +51,7 @@ export class LogsPlugin extends Plugin {
config: {
channels: {},
format: {
timestamp: "HH:mm:ss",
timestamp: "YYYY-MM-DD HH:mm:ss",
...DefaultLogMessages
}
}
@ -306,6 +306,7 @@ export class LogsPlugin extends Plugin {
member: stripObjectToScalars(member, ["user"]),
channel: stripObjectToScalars(channel),
messageText: disableCodeBlocks(deactivateMentions(savedMessage.data.content || "<no text content>")),
messageDate: moment(savedMessage.data.timestamp, "x").format(this.configValue("format.timestamp")),
attachments: disableLinkPreviews(useMediaUrls(attachments))
},
savedMessage.id