bot: Bot setup and teardown done: Connect w/retry, join/leave, full config, and logging.

This commit is contained in:
2018-11-14 21:01:29 +01:00
parent 112c29694d
commit 7336ea2b47
9 changed files with 236 additions and 76 deletions
+7 -3
View File
@@ -10,10 +10,14 @@ import (
// Config represents the logbot's configuration.
type Config struct {
Bot struct {
Nicks []string `json:"nicks"`
Server string `json:"server"`
CommandChannel string `json:"commandChannel"`
Nicks []string `json:"nicks"`
User string `json:"user"`
RealName string `json:"realName"`
} `json:"bot"`
Server struct {
Address string `json:"server"`
SSL bool `json:"ssl"`
}
API struct {
Endpoint string `json:"endpoint"`
Username string `json:"username"`