Coder Social home page Coder Social logo

wechatrobot's Introduction

WeChatRobot

微信机器人,能够排忧解难,帮你处理大量的操作。也可以陪你聊天,获取想要的信息。

⚠️注意:master分支为不稳定分支,目前稳定分支为 v0.2.6 请优先使用稳定分支!!!

项目目录

WechatRobot
    |---assets  // 资源目录
    |    |---avatar // 头像资源
    |    |---document // 文档资源
    |    |---image // 图片资源资源
    |    |---match // 朋友圈配图资源
    |    |---miniprogram // 小程序码存放路径
    |    |---video // 视频资源
    |    |---voice // 语音资源
    |    |---wallpaper // 壁纸资源
    |---config  // 配置文件目录
    |---feature  // 功能文件目录,存放各个功能的实现
    |---model  // mongoose 数据库模型目录,存放数据库映射关系
    |---plan  // 版本计划列表,按版本细分文件,方便查阅
    |---test  // 存放用于临时测试的文件
    |---token  // 百度 AI Token 存放目录,在 v0.3.0 接入百度 AI 后删除,改用数据库记录
    |---tools  // 工具类存放目录,主要存放相关的工具类,为功能模块提供支持
    |---index.js  // 项目主文件,是机器人的入口文件
    |---plan.md  // 特殊功能规划文件,主要为提升机器人的智能程度
    |---updatelog.md  // 项目更新日志
    |---LICENSE  // 开源证书文件

项目依赖环境

node: 版本大于 v10.0.0,推荐使用版本:v10.5.0

运行

安装依赖:

npm install

修改所需要的配置信息:

打开 config.js 文件,补全文件中的相应的Key,目前有:

// 心知天气API密钥
weatherAPIKey: '',
// 百度AI应用 API Key
baiduApiKey: '',
// 百度AI应用 Secret Key
baiduSecretKey: '',
// 聚合数据,获取笑话的key
jokeKey: '',
// 聚合数据,问答类的key
qAndAKey: ''

运行:

npm start

扫描终端二维码,登录,然后完成。

注意

目前百度AI接口正在开发中,相应功能还未实现,可以不用填写百度AI相应的 key 。(在 v0.3.0 等后续版本中将接入百度AI中心)

知识库功能

此版本展示关闭知识库功能,下个版本将重构知识库功能,带来更加好用的知识库管理和整理功能。

修改 order.js 文件中的 ORDER_KEY 对象可以修改警告的关键字。

开源协议

MIT License

Copyright (c) 2018 康兵奎

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

更新日志

wechatrobot's People

Contributors

bingkui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.