add custom status message
This commit is contained in:
@@ -20,6 +20,7 @@ func New() *Config {
|
||||
NoOwner: env.Bool("noowner"),
|
||||
Federation: env.Bool("federation"),
|
||||
MaxSize: env.Int("maxsize", defaultConfig.MaxSize),
|
||||
StatusMsg: env.String("statusmsg", defaultConfig.StatusMsg),
|
||||
Sentry: Sentry{
|
||||
DSN: env.String("sentry.dsn", defaultConfig.Sentry.DSN),
|
||||
},
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
package config
|
||||
|
||||
var defaultConfig = &Config{
|
||||
LogLevel: "INFO",
|
||||
Domain: "localhost",
|
||||
Port: "25",
|
||||
Prefix: "!pm",
|
||||
MaxSize: 1024,
|
||||
LogLevel: "INFO",
|
||||
Domain: "localhost",
|
||||
Port: "25",
|
||||
Prefix: "!pm",
|
||||
MaxSize: 1024,
|
||||
StatusMsg: "Delivering emails",
|
||||
DB: DB{
|
||||
DSN: "local.db",
|
||||
Dialect: "sqlite3",
|
||||
|
||||
@@ -24,6 +24,8 @@ type Config struct {
|
||||
Prefix string
|
||||
// MaxSize of an email (including attachments)
|
||||
MaxSize int
|
||||
// StatusMsg of the bot
|
||||
StatusMsg string
|
||||
|
||||
// DB config
|
||||
DB DB
|
||||
|
||||
Reference in New Issue
Block a user