diff --git a/configEditor.go b/configEditor.go index 3c6ee83..428f555 100644 --- a/configEditor.go +++ b/configEditor.go @@ -55,12 +55,14 @@ func registerEditorFrontend() { router.HandleFunc("/editor/vars.json", func(w http.ResponseWriter, r *http.Request) { if err := json.NewEncoder(w).Encode(struct { + DefaultBotScopes []string IRCBadges []string KnownEvents []*string TemplateFunctions []string TwitchClientID string Version string }{ + DefaultBotScopes: botDefaultScopes, IRCBadges: twitch.KnownBadges, KnownEvents: knownEvents, TemplateFunctions: tplFuncs.GetFuncNames(), diff --git a/src/generalConfig.vue b/src/generalConfig.vue index c43f780..534b4ff 100644 --- a/src/generalConfig.vue +++ b/src/generalConfig.vue @@ -268,6 +268,17 @@
  • Open the copied URL, sign in with the bot account and accept the permissions
  • The bot will display a message containing the authorized account. If this account is wrong, just start over, the token will be overwritten.
  • +

    + + Bot is missing {{ botMissingScopes }} of its default scopes, please re-authorize the bot. +

    ({ text: this.authURLs.available_extended_scopes[v], value: v }))