Skip to content

Commit

Permalink
Merge pull request #98 from Cassius0924/feat-update-wechatbot
Browse files Browse the repository at this point in the history
fix:  适配新版wechatbot
  • Loading branch information
Cassius0924 authored Aug 29, 2024
2 parents 7bd20e4 + ad477e8 commit 14ec532
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config_cps.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ bark_url:


# Bot
bot_name: Cassius
bot_name: "Cassius"


# Chat
Expand All @@ -37,7 +37,7 @@ openai_token: sk_your_openai_token


# GitHub Webhook
github_webhook_enabled: True
github_webhook_enabled: False
github_webhook_api_path: /webhook/github
github_webhook_receive_person_list: [ ]
github_webhook_receive_group_list: [ ]
Expand Down Expand Up @@ -101,4 +101,4 @@ discord_message_forwarding_rule_list:

# GPT Mode Person
gpt_mode_person_list: [ ]
gpt_mode_model: "gpt4"
gpt_mode_model: "gpt4"
2 changes: 1 addition & 1 deletion wechatter/models/wechat/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def from_api_msg(

_group = None
# room为群信息,只有群消息才有room
if source_json["room"] != "":
if source_json["room"] != {}:
g_data = source_json["room"]
payload = g_data.get("payload", {})
_group = Group(
Expand Down

0 comments on commit 14ec532

Please sign in to comment.