Documentation ¶
Index ¶
Constants ¶
View Source
const (
StopWord = `#stop`
)
Variables ¶
View Source
var ( DefaultVoiceFormat = beep.Format{ Precision: 2, NumChannels: 1, SampleRate: 22050 / 2, } ChatPat = regexp.MustCompile(`^(?:[*](?:DEAD|SPEC)[*])?\s*(?:\([^)]+\))?\s*(.+?)\s*:\s*(?:[#]|:\s?>|:\s?<|<\s?:|>\s?:)\s*(.+?)\s*$`) CvarPat = regexp.MustCompile(`^(?:\[[^\]]+\])?"?([^"]+)"?\s*=\s*"([^"]*)"`) GamePathPat = regexp.MustCompile(`(?i)^GAME\s.*"([^"]+[/\\]steamapps[/\\]common)[/\\]+([^/\\"]+)`) FlatpakPat = regexp.MustCompile(`^\w+:([\\].+)`) ConnectPat = regexp.MustCompile(`(?i)^\s*(.*)\s*(connected|disconnected|Not connected to server)\s*$`) StatusPat = regexp.MustCompile(`^#\s+\d+(?:\s+\d+)?\s+"([^"]+)".+(STEAM_\d+:\d+:\d+|BOT)`) StatusServerPat = regexp.MustCompile(`^\s*Connected to (\S+:\d+)\s*$`) StatusTableBegin = `# userid name uniqueid connected ping loss state rate` StatusTableEnd = `#end` ErrPassword = errors.New("Password is incorrect and/or not set") )
Functions ¶
Types ¶
type App ¶
type App interface { Store() *store.DB State() appstate.AppState Logs() *logs.Logger Limiter(name string) *rate.Limiter TTS(key string) *piper.TTS VoiceModStopped(err error) VoiceModGame(ts time.Time, game *steam.GameInfo, gameDir string) VoiceModPresence(ts time.Time, server string, hums, bots data.SliceSet[steam.Profile]) VoiceModServerDisconnected() VoiceModNetcon() (Conn, error) DedicatedGameDir() string }
Click to show internal directories.
Click to hide internal directories.