diff --git a/README.MD b/README.MD index 4a0bee5..5f77320 100644 --- a/README.MD +++ b/README.MD @@ -4,6 +4,13 @@ justlog is a bot I maintain for a couple of channels. Its features differ from other bots in that it doesn't support commands, etc. yet, it focuses on logging and providing an api for the logs. +### Docker + +``` +mkdir logs # Make sure the log folder is set correctly in your config, we need to create it first to have correct permissions +docker run -p 8025:8025 --user $(id -u):$(id -g) -v $PWD/config.json:/etc/justlog.json -v $PWD/logs:/logs ghcr.io/gempir/justlog +``` + ### Commands - `!justlog status` will respond with uptime - `!justlog join gempir,pajlada` will join the channels and append them to the config diff --git a/config/main.go b/config/main.go index 906f915..e11f083 100644 --- a/config/main.go +++ b/config/main.go @@ -125,7 +125,7 @@ func loadConfiguration(filePath string) *Config { cfg := Config{ configFile: filePath, LogsDirectory: "./logs", - ListenAddress: "127.0.0.1:8025", + ListenAddress: ":8025", Username: "justinfan777777", OAuth: "oauth:777777777", Channels: []string{},