resolution: {integrity: sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==} engines: {node: '>=0.10.0'} color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584...
{ + let timeoutId; + let called = false; + return () => { + if (timeoutId) + clearTimeout(timeoutId); + if (!called) { + fn(); + (called = true) && setTimeout(() => (called = false), delay); + } + else + timeoutId = setTimeout(fn, delay); + }; +} +...
fmt.Println("Usage: coze-discord-proxy [--port <port>] [--log-dir <log directory>] [--version] [--help]") } func init() { Expand All @@ -38,12 +38,6 @@ func init() { os.Exit(0) } if os.Getenv("SESSION_SECRET") != "" { SessionSecret = os.Getenv("SESSION_SECRET"...
SCRIPT_DIR="$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)" if [ "$(id -u)" -ne 0 ]; then echo -e 'Script must be run as root. Use sudo, su, or add "USER root" to your Dockerfile before running this script.' exit 1 fi # Ensure that login shells get the correct path...
(code string) (*GitHubUser, error) { + if code == "" { + return nil, errors.New("无效的参数") + } + values := map[string]string{"client_id": common.GitHubClientId, "client_secret": common.GitHubClientSecret, "code": code} + jsonData, err := json.Marshal(values) + if err...
fmt.Println("Usage: coze-discord-proxy [--port <port>] [--log-dir <log directory>] [--version] [--help]") } func init() { Expand All @@ -38,12 +38,6 @@ func init() { os.Exit(0) } if os.Getenv("SESSION_SECRET") != "" { SessionSecret = os.Getenv("SESSION_SECRET"...
fmt.Println("Usage: coze-discord-proxy [--port <port>] [--log-dir <log directory>] [--version] [--help]") } func init() { Expand All @@ -38,12 +38,6 @@ func init() { os.Exit(0) } if os.Getenv("SESSION_SECRET") != "" { SessionSecret = os.Getenv("SESSION_SECRET"...
fmt.Println("Usage: coze-discord-proxy [--port <port>] [--log-dir <log directory>] [--version] [--help]") } func init() { Expand All @@ -38,12 +38,6 @@ func init() { os.Exit(0) } if os.Getenv("SESSION_SECRET") != "" { SessionSecret = os.Getenv("SESSION_SECRET"...