Code Monkey home page Code Monkey logo

wechaty-web-panel's Introduction

Wechaty Web Panel

Wechaty Plugin Web Panel Powered by Wechaty NPM Version

Wechaty Web Panel 插件,让你的 wechaty 机器人快速接入 web 控制面板

本项目为面板源码,如需可直接运行的项目,请直接拉取 https://github.com/leochen-g/wechat-assistant-pro 即可

面板主要功能

  • 定时提醒
  • 当天定时提醒 例:"提醒 我 18:00 下班了,记得带好随身物品"
  • 每天定时提醒 例:"提醒 我 每天 18:00 下班了,记得带好随身物品"
  • 指定日期提醒 例:"提醒 我 2019-05-10 8:00 还有 7 天是女朋友生日了,准备一下"
  • 智能机器人
  • 天行机器人
  • 图灵机器人
  • 腾讯闲聊机器人
  • ChatGPT api (支持切换模型)
  • ChatGPT 网页hook
  • 微信对话开放平台
  • dify 平台和fastgpt无缝适配
  • 更多
  • 定时任务
  • 新闻定时发送
  • 自定义内容定时发送
  • 微信每日说,定时给女朋友和群友发送每日天气提醒,以及每日一句
  • 更多功能等你来 pr
  • 技能中心
  • 关键词加好友
  • 关键词加群
  • 关键词回复
  • 关键词事件
    • 天气查询 例:"上海天气"
    • 垃圾分类 例:"?香蕉皮"
    • 名人名言 例: "名人名言"
    • 老黄历查询 例: "黄历 2019-6-13"
    • 姓氏起源 例: "姓陈"
    • 星座运势 例: "*双子座"
    • 神回复 例: "神回复"
    • 获取表情包 例: "表情包你好坏"
    • 获取美女图 例: "美女图"
    • 群合影 例: "群合影" - [x] 牛年头像 例: "牛气冲天" - [x] 国旗头像 例: "我要国旗"(下线)
    • 更多待你发现
  • 进群自动欢迎
  • 加好友自动回复
  • 自定义回调事件
  • 私聊消息同步到群或好友
  • 自动更新配置文件,无需重启
  • 默认给机器人发送 ‘更新’ 触发拉取新配置文件操作,可在面板小助手配置->关键词回复->关键词事件进行修改关键词
  • 特色功能

- [x] 群合影(下线)

  • 主动发送消息
  • 主动更新配置
  • 主动同步好友和群列表
  • 多群消息同步
  • 回调事件
  • 群发助手
  • openapi请求
  • rss订阅推送

更多详情介绍:传送门

提前准备

注册智能微秘书管理账号

  1. 注册:智能微秘书

  2. 初始化配置文件小助手配置->基础配置,修改后保存

  3. 个人中心获取APIKEYAPISECRET,后续配置用到

注册天行数据账号

由于本项目大部分定时资讯和一些天气接口来自于天行数据,所以需要提前准备好天行数据的账号,同时申请好相关接口的权限

1、注册: 天行数据

2、申请接口权限

必选接口

可选接口(如果想使用相应的功能还是必须申请的),但是如果默认使用了天行机器人,以下功能接口无需申请也可以,机器人会直接返回对应信息

开始

环境node > 16

Step 1: 安装

$ npm install wechaty-web-panel@latest wechaty@latest --save

如果安装长时间没有反应,可以尝试

npm install wechaty-web-panel@latest wechaty@latest --save

Step 2: 创建机器人并配置插件的apiKeyapiSecret

$ vim mybot.js

const {WechatyBuilder} = require('wechaty')
const WechatyWebPanelPlugin = require('wechaty-web-panel')

const name = 'wechat-assistant'

const bot = WechatyBuilder.build({
    name, // generate xxxx.memory-card.json and save login data for the next login
    puppet: 'wechaty-puppet-wechat',
})
bot
    .use(WechatyWebPanelPlugin({
        apiKey: '',
        apiSecret: ''
    }))
    .start()
    .catch((e) => console.error(e))


Step 3: 运行

$ node mybot.js

Step 4: 扫码进入

进入面板小助手配置->登录状态扫码登录,或直接扫码控制台二维码登录

面板预览

功能预览

个人定时与群定时任务

群消息同步

wechaty-web-panel's People

Contributors

leochen-g avatar jimmylv avatar liubiantao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.