GithubHelp home page GithubHelp logo

ziki-wechaty-helper's Introduction

基于wechaty的个人知识库机器人

背景

搭建个人知识库可以帮助将繁多和碎片化的知识进行分类收集,形成有条理的结构化知识体系,同时提供知识点的快速检索。

我的个人知识库(Ziki)某一页面

我的知识库文章大部分来源于订阅的rss文章,经阅读后会收藏部分文章,再由后台将这些文章同步到知识库,并执行与知识树的匹配。但移动端其他app例如知乎、虎扑等的帖子,却还无法自动入库,还依赖去知识库页面内手动输入url的方式添加,操作路径太长。考虑到大多app都有一键分享到微信的功能,搭建一个微信机器人来解决最适合不过了。

核心功能

  • 将感兴趣的文章分享给微信机器人,机器人接收后传给知识库接口处理,接口会将该文章入库和挂载到相关的知识点
  • 发送关键字给微信机器人,机器人接收后查询知识库接口,返回与该关键字有关的文章列表

分享知乎文章给机器人,实现文章的自动入库

向机器人查询知识点文章列表

代码

仓库地址

https://github.com/wade0564/ziki-wechaty-helper

配置

wechaty 配置

config/wechaty.js

module.exports = {
  // puppet provider
  puppet: "wechaty-puppet-padlocal",
  // token for puppet service
  token: "puppet_padlocal_xxxxxx",
  // bot name
  name: "Ziki Helper",
  limitedUsers: ["wxid_xxxxx"],
}

知识库接口配置

config/ziki.js

module.exports = {
  favorApi: "http://xxxxxx", // favor api
  queryApi: "http://xxxxxx", // query api
  username: "xx",
  password: "xx"
}

运行

npm run start

ziki-wechaty-helper's People

Contributors

wade0564 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ziki-wechaty-helper's Issues

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.