From fe0fe6da38dbf2b19a6a294a66a01809b8d961c7 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sun, 17 Aug 2025 18:06:33 -0400 Subject: ghost WIP --- types.go | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'types.go') diff --git a/types.go b/types.go index f796b66..2939645 100644 --- a/types.go +++ b/types.go @@ -207,7 +207,8 @@ func (config *TomlConfig) deleteTriggeredScript(name string) { } type AppConfig struct { - Ircd map[string]TomlConfig `toml:"ircd"` + Ircd map[string]TomlConfig `toml:"ircd"` + Ghost map[string]GhostNetwork `toml:"ghost"` } type OllamaRequestOptions struct { @@ -328,3 +329,28 @@ type UserAgentResponse struct { type Alias struct { Alias string `toml:"alias"` } + +type GhostRuleSet struct { + DisableAll bool `toml:"disableAll"` + WhiteList []string `toml:"whiteList"` + EnableAll bool `toml:"enableAll"` + BlackList []string `toml:"blackList"` + Outward bool `toml:"outward"` +} + +type GhostNetwork struct { + ServerAddress string `toml:"serverAddress"` + UseTLS bool `toml:"useTLS"` + SkipTLSVerify bool `toml:"skipTLSVerify"` + Nick string `toml:"nick"` + SaslUser string `toml:"saslUser"` + SaslPass string `toml:"saslPass"` + CertPath string `toml:"certPath"` + KeyPath string `toml:"keyPath"` + ListenAddress string `toml:"listenAddress"` + Rephrase bool `toml:"rephrase"` + OllamaEndpoint string `toml:"ollamaEndpoint"` + Instructions []string `toml:"instructions"` + Prompt string `toml:"prompt"` + GhostRuleSets []GhostRuleSet `toml:"ghostRuleSets"` +} -- cgit v1.2.3