v2.4 🚀
This commit is contained in:
parent
45552dced7
commit
905354f9f6
@ -6,6 +6,7 @@ import (
|
||||
"github.com/wechatgpt/wechatbot/config"
|
||||
"github.com/wechatgpt/wechatbot/handler/wechat"
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func StartWebChat() {
|
||||
@ -52,7 +53,7 @@ func StartWebChat() {
|
||||
|
||||
func getKeyword() string {
|
||||
keyword := os.Getenv("wechat")
|
||||
if len(keyword) == 0 {
|
||||
if len(strings.Trim(keyword, " ")) == 0 {
|
||||
gptConfig := config.GetConfig()
|
||||
if gptConfig != nil {
|
||||
if gptConfig.ChatGpt.Wechat != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user