lib

package
v0.0.0-...-de95b25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuditConfig

func AuditConfig(config ChatterinoConfig) bool

func AuditHighlights

func AuditHighlights(config ChatterinoConfig) bool

func GetChatterinoConfigJSON

func GetChatterinoConfigJSON() string

func GetChatterinoConfigURL

func GetChatterinoConfigURL() string

func PushChatterinoConfigChanges

func PushChatterinoConfigChanges(configUpdates ChatterinoConfig)

Types

type AppearanceConfig

type AppearanceConfig struct {
	Splitheader SplitheaderAppearanceConfig `json:"splitheader"`
	Messages    MessagesAppearanceConfig    `json:"messages"`
	BoldScale   float32                     `json:"boldScale"`
	UiScale2    float32                     `json:"UiScale2"`
}

type BadgeHighlight

type BadgeHighlight struct {
	Name           string `json:"name"`
	DisplayName    string `json:"displayName"`
	ShowInMentions bool   `json:"showInMentions"`
	Alert          bool   `json:"alert"`
	Sound          bool   `json:"sound"`
	SoundUrl       string `json:"soundUrl"`
	Color          string `json:"color"`
}

type BehavoirConfig

type BehavoirConfig struct {
	Autorun   bool `json:"autorun"`
	ShowJoins bool `json:"showJoins"`
	ShowParts bool `json:"showParts"`
}

type ChatterinoConfig

type ChatterinoConfig struct {
	Behavior BehavoirConfig `json:"behavior"`
	Misc     MiscConfig     `json:"misc"`
	Ui       UiConfig       `json:"ui"`
	//Accounts      AccountsConfig        `json:"accounts"`
	Highlighting  HighlightingConfig    `json:"highlighting"`
	Filtering     FilteringList         `json:"filtering"`
	Links         LinksConfig           `json:"links"`
	Emotes        EmotesConfig          `json:"emotes"`
	Appearance    AppearanceConfig      `json:"appearance"`
	Notifications NotificationsSettings `json:"notifications"`
	Whispers      WhispersConfig        `json:"whispers"`
	Debug         DebugConfig           `json:"debug"`
	External      ExternalsConfig       `json:"external"`
	StreamerMode  StreamerModeConfig    `json:"streamerMode"`
	Logging       LoggingConfig         `json:"logging"`
	//Hotkeys       HotkeysConfig         `json:"hotkeys"`
	Similarity SimilarityConfig `json:"similarity"`
	Nicknames  []NicknameConfig `json:"nicknames"`
}

func ParseChatterinoConfigJSON

func ParseChatterinoConfigJSON(jsonString string) ChatterinoConfig

type DebugConfig

type DebugConfig struct {
	ShowUnhandledIrcMessages bool `json:"showUnhandledIrcMessages"`
}

type EmotesConfig

type EmotesConfig struct {
	EmojiSet string `json:"emojiSet"`
}

type ExternalsConfig

type ExternalsConfig struct {
	Streamlink StreamlinkConfig `json:"streamlink"`
}

type FilterConfig

type FilterConfig struct {
	Name   string `json:"name"`
	Filter string `json:"filter"`
	Id     string `json:"id"`
}

type FilteringList

type FilteringList struct {
	Filters []FilterConfig `json:"filters"`
}

type HighlightingConfig

type HighlightingConfig struct {
	Badges          []BadgeHighlight      `json:"badges"`
	Users           []IndividualHighlight `json:"users"`
	SelfHighlight   SelfHighlightRule     `json:"selfHighlight"`
	AlwaysPlaySound bool                  `json:"alwaysPlaySound"`
	Highlights      []IndividualHighlight `json:"highlights"`
}

type IndividualHighlight

type IndividualHighlight struct {
	Pattern        string `json:"pattern"`
	ShowInMentions bool   `json:"showInMentions"`
	Alert          bool   `json:"alert"`
	Sound          bool   `json:"sound"`
	Regex          bool   `json:"regex"`
	Case           bool   `json:"case"`
	SoundUrl       string `json:"soundUrl"`
	Color          string `json:"color"`
}

type LinksConfig

type LinksConfig struct {
	LinkInfoTooltip   bool `json:"linkInfoTooltip"`
	UnshortLinks      bool `json:"unshortLinks"`
	DoubleClickToOpen bool `json:"doubleClickToOpen"`
}

type LoggingConfig

type LoggingConfig struct {
	Path    string `json:"path"`
	Enabled bool   `json:"enabled"`
}

type MessagesAppearanceConfig

type MessagesAppearanceConfig struct {
	FindAllUsernames  bool   `json:"findAllUsernames"`
	ShowMessageLength bool   `json:"showMessageLength"`
	ColorizeNicknames bool   `json:"colorizeNicknames"`
	ShowTimestamps    bool   `json:"showTimestamps"`
	TimestampFormat   string `json:"timestampFormat"`
}

type MiscConfig

type MiscConfig struct {
	CurrentVersion     string           `json:"currentVersion"`
	Beta               bool             `json:"beta"`
	Twitch             MiscTwitchConfig `json:"twitch"`
	ExperimentalIrc    bool             `json:"experimentalIrc"`
	RestartOnCrash     bool             `json:"restartOnCrash"`
	LockNotebookLayout bool             `json:"lockNotebookLayout"`
}

type MiscTwitchConfig

type MiscTwitchConfig struct {
	LoadMessageHistroyOnConnect bool `json:"loadMessageHistoryOnConnect"`
}

type NicknameConfig

type NicknameConfig struct {
	Name            string `json:"name"`
	Replace         string `json:"replace"`
	IsRegex         bool   `json:"isRegex"`
	IsCaseSensitive bool   `json:"isCaseSensitive"`
}

type NotificationsSettings

type NotificationsSettings struct {
	Twitch          []string `json:"twitch"`
	EnablePlaySound bool     `json:"enablePlaySound"`
}

type SelfHighlightRule

type SelfHighlightRule struct {
	EnableSound bool `json:"enableSound"`
}

type SimilarityConfig

type SimilarityConfig struct {
	HideSimilarMaxMessagesToCheck int `json:"hideSimilarMaxMessagesToCheck"`
}

type SplitheaderAppearanceConfig

type SplitheaderAppearanceConfig struct {
	ShowUptime      bool `json:"showUptime"`
	ShowViewerCount bool `json:"showViewerCount"`
}

type StreamerModeConfig

type StreamerModeConfig struct {
	MuteMentions        bool `json:"muteMentions"`
	HideUsercardAvatars bool `json:"hideUsercardAvatars"`
	HideLinkThumbnails  bool `json:"hideLinkThumbnails"`
	Enabled             int  `json:"enabled"`
}

type StreamlinkConfig

type StreamlinkConfig struct {
	UseCustomPath bool   `json:"useCustomPath"`
	CustomPath    string `json:"customPath"`
}

type UiConfig

type UiConfig struct {
	LastSelectChannelTab int `json:"lastSelectChannelTab"`
	LastSelectIrcConn    int `json:"lastSelectIrcConn"`
}

type WhispersConfig

type WhispersConfig struct {
	HighlightInlineWhispers bool `json:"highlightInlineWhispers"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL