本项目作为 wechat-gptbot
插件,可以根据关键字回复对应的信息。
在 plugins/source.json
文件中添加以下配置:
{
"daily_news": {
"repo": "https://github.com/lepingzhang/daily_news.git",
"desc": "每日早报"
}
}
在 config.json
文件中添加以下配置:
"plugins": [
{
"name": "daily_news",
"schedule_time": "08:00",
"command": ["早报", "今天有什么新闻"],
"single_chat_list": ["wxid_***"],
"group_chat_list": ["***@chatroom"],
"token": "your_token_here",
"reply_mode": "text" #text仅文本、image仅图片、both文本+图片
}
]
在这里获取token