From d28d6e7635d6ac805d67ae7a80072e4f1436e0d7 Mon Sep 17 00:00:00 2001 From: Alex Dunn Date: Wed, 3 Jun 2020 19:44:59 -0700 Subject: [PATCH] sort settings.json --- settings.go | 23 +++++++++++------------ settings_example.json | 26 +++++++++++++------------- 2 files changed, 24 insertions(+), 25 deletions(-) diff --git a/settings.go b/settings.go index 264e682..ab5d3a8 100644 --- a/settings.go +++ b/settings.go @@ -23,24 +23,23 @@ type Settings struct { cmdLineKey string // stream key from the command line // Saved settings - StreamStats bool - MaxMessageCount int - TitleLength int // maximum length of the title that can be set with the /playing - PageTitle string // primary value for the page element AdminPassword string - RegenAdminPass bool // regenerate admin password on start? - StreamKey string - ListenAddress string ApprovedEmotes []string // list of channels that have been approved for emote use. Global emotes are always "approved". - TwitchClientID string // client id from twitch developers portal - SessionKey string // key for session data Bans []BanInfo - LogLevel common.LogLevel + ListenAddress string LogFile string + LogLevel common.LogLevel + MaxMessageCount int + NewPin bool // Auto generate a new pin on start. Overwrites RoomAccessPin if set. + PageTitle string // primary value for the page <title> element + RegenAdminPass bool // regenerate admin password on start? RoomAccess AccessMode RoomAccessPin string // The current pin - NewPin bool // Auto generate a new pin on start. Overwrites RoomAccessPin if set. - + SessionKey string // key for session data + StreamKey string + StreamStats bool + TitleLength int // maximum length of the title that can be set with the /playing + TwitchClientID string // client id from twitch developers portal WrappedEmotesOnly bool // only allow "wrapped" emotes. eg :Kappa: and [Kappa] but not Kappa // Rate limiting stuff, in seconds diff --git a/settings_example.json b/settings_example.json index 891e226..04ec2c3 100644 --- a/settings_example.json +++ b/settings_example.json @@ -1,20 +1,20 @@ { - "MaxMessageCount": 300, - "PageTitle": "Movie Night", - "TitleLength": 50, "AdminPassword": "", - "RegenAdminPass": true, - "Bans": [], - "StreamKey": "ALongStreamKey", - "ListenAddress": ":8089", "ApprovedEmotes": null, - "LogLevel": "debug", + "Bans": [], + "ListenAddress": ":8089", "LogFile": "thelog.log", - "RateLimitChat": 1, - "RateLimitNick": 300, - "RateLimitColor": 60, - "RateLimitAuth": 5, - "RateLimitDuplicate": 30, + "LogLevel": "debug", + "MaxMessageCount": 300, "NoCache": false, + "PageTitle": "Movie Night", + "RateLimitAuth": 5, + "RateLimitChat": 1, + "RateLimitColor": 60, + "RateLimitDuplicate": 30, + "RateLimitNick": 300, + "RegenAdminPass": true, + "StreamKey": "ALongStreamKey", + "TitleLength": 50, "WrappedEmotesOnly": false }