https://github.com/xiaodong2008/wechat-robot
  
  
    一个由wechaty驱动的简易版微信机器人,支持天气查询,翻译,计算机,chatGPT问答 
    https://github.com/xiaodong2008/wechat-robot
  
        Last synced: 6 months ago 
        JSON representation
    
一个由wechaty驱动的简易版微信机器人,支持天气查询,翻译,计算机,chatGPT问答
- Host: GitHub
- URL: https://github.com/xiaodong2008/wechat-robot
- Owner: xiaodong2008
- License: mit
- Created: 2022-12-10T12:11:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-31T05:02:12.000Z (almost 3 years ago)
- Last Synced: 2025-05-07T09:15:44.417Z (6 months ago)
- Language: TypeScript
- Homepage:
- Size: 118 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
- License: LICENSE
 
Awesome Lists containing this project
README
          # Wechat-Bot
这是一个基于wechaty开发的微信机器人,内置了一些常用的功能。
## 内置功能
- 自动回复
- 管理员面板
- 天气查询
- 翻译
- 计算机
- ChatGPT
- 等等
## 使用方法
1. Git Clone
```bash
git clone https://github.com/dy-xiaodong2022/wechat-robot.git
```
2. 安装依赖
```bash
npm install
```
3. 修改配置文件 `secret.json`
```text
{
  "translate": {
    "appid": "your baidu translate appID",
    "key": "your baidu translate key"
  },
  "weather": {
    "key": "your visualcrossing weather key"
  }
}
```
4. 启动
```bash
npm run dev
```
## 常见问题
1. 为什么打包时报错 `SyntaxError: Octal literal in strict mode`
你可以在 `node_modules\qrcode-terminal\lib\main.js` 中,把第三和第四行的 `\033` 改为 `\x1b`。
## 温馨提醒
机器人虽好,但需注意不要拿自己大号扫二维码登录,否则可能会被微信封号。
我的大号已经被警告了...