mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-11 04:45:02 +00:00
logs: add timestamps to embeds, add setting to turn off embed timestamps, move timestamp format setting to root/channel level
This commit is contained in:
parent
b158817bff
commit
400f1f0807
4 changed files with 42 additions and 16 deletions
|
@ -1,6 +1,6 @@
|
|||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { PluginOptions } from "knub";
|
||||
import { ConfigSchema, LogsPluginType } from "./types";
|
||||
import { ConfigSchema, FORMAT_NO_TIMESTAMP, LogsPluginType } from "./types";
|
||||
import DefaultLogMessages from "../../data/DefaultLogMessages.json";
|
||||
import { GuildLogs } from "../../data/GuildLogs";
|
||||
import { GuildSavedMessages } from "../../data/GuildSavedMessages";
|
||||
|
@ -28,10 +28,12 @@ const defaultOptions: PluginOptions<LogsPluginType> = {
|
|||
config: {
|
||||
channels: {},
|
||||
format: {
|
||||
timestamp: "YYYY-MM-DD HH:mm:ss z",
|
||||
timestamp: FORMAT_NO_TIMESTAMP, // Legacy/deprecated, use timestamp_format below instead
|
||||
...DefaultLogMessages,
|
||||
},
|
||||
ping_user: true,
|
||||
timestamp_format: "YYYY-MM-DD HH:mm:ss z",
|
||||
include_embed_timestamp: true,
|
||||
},
|
||||
|
||||
overrides: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue