add docker docs, change default listen to expose in container

This commit is contained in:
gempir 2020-11-22 12:38:07 +01:00
parent d0bd4f488f
commit 6d6f2db06f
2 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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{},