|
@@ -3,6 +3,7 @@ package config
|
|
|
import (
|
|
import (
|
|
|
"os"
|
|
"os"
|
|
|
"path/filepath"
|
|
"path/filepath"
|
|
|
|
|
+ "time"
|
|
|
|
|
|
|
|
"github.com/BurntSushi/toml"
|
|
"github.com/BurntSushi/toml"
|
|
|
"github.com/ayn2op/discordo/internal/constants"
|
|
"github.com/ayn2op/discordo/internal/constants"
|
|
@@ -13,6 +14,7 @@ type Config struct {
|
|
|
|
|
|
|
|
Timestamps bool `toml:"timestamps"`
|
|
Timestamps bool `toml:"timestamps"`
|
|
|
TimestampsBeforeAuthor bool `toml:"timestamps_before_author"`
|
|
TimestampsBeforeAuthor bool `toml:"timestamps_before_author"`
|
|
|
|
|
+ TimestampsFormat string `toml:"timestamps_format"`
|
|
|
|
|
|
|
|
MessagesLimit uint8 `toml:"messages_limit"`
|
|
MessagesLimit uint8 `toml:"messages_limit"`
|
|
|
|
|
|
|
@@ -28,6 +30,7 @@ func DefaultConfig() Config {
|
|
|
|
|
|
|
|
Timestamps: false,
|
|
Timestamps: false,
|
|
|
TimestampsBeforeAuthor: false,
|
|
TimestampsBeforeAuthor: false,
|
|
|
|
|
+ TimestampsFormat: time.Kitchen,
|
|
|
|
|
|
|
|
MessagesLimit: 50,
|
|
MessagesLimit: 50,
|
|
|
Editor: "default",
|
|
Editor: "default",
|