darknightlab / wechat-bot

a wechat bot using wechaty, which can archive web pages, analyze pictures, and automatically reply.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wechat-bot

a wechat bot using wechaty, which can archive web pages, analyze pictures, and automatically reply.

Dependencies

Features

  • Automatically save links contained in messages to ArchiveBox
  • Using DeepDanbooru to analyze anime girls in pictures
  • Using chatgpt-api to automatically reply (supports continuous conversations)

Deploy

Dependencies

Deploy archivebox or set archive.enable = false in config.yaml

Deploy deepdanbooru-docker with web api or set animepic.enable = false in config.yaml

Docker Compose

Deploy wechat-bot

wget https://raw.githubusercontent.com/darknightlab/wechat-bot/main/docker-compose.yml
mkdir config
wget -O config/config.yaml https://raw.githubusercontent.com/darknightlab/wechat-bot/main/config/config.example.yaml
vim config/config.yaml
docker-compose up -d

Bash

git clone https://github.com/darknightlab/wechat-bot.git
cd wechat-bot
npm install
cp config/config.example.yaml config/config.yaml
vim config/config.yaml
npm start

Usage

Commands

/chatgpt [enable|disable|reset|refresh]
/archive [enable|disable]
/animepic [enable|disable]

ChatGPT

send message to bot, it will automatically reply.

ArchiveBox

send links or forward Wechat Articles to bot, it will save to ArchiveBox.

DeepDanbooru

send anime pictures to bot, it will reply tags.

About

a wechat bot using wechaty, which can archive web pages, analyze pictures, and automatically reply.


Languages

Language:TypeScript 96.3%Language:Dockerfile 3.7%