GithubHelp home page GithubHelp logo

monsterzuo / piggy-bro Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reikohaku/piggy-bro

0.0 1.0 0.0 347 KB

基于 Wechaty 开发开源的二师兄社群逗乐机器人。

License: MIT License

Shell 0.74% JavaScript 9.24% TypeScript 78.82% HTML 0.83% Vue 9.65% SCSS 0.73%

piggy-bro's Introduction

piggy-bro

二师兄逗乐机器人

基于 Wechaty 开发开源的二师兄社群逗乐机器人。

文档

运行环境

Node >= 12 且 Node < 14,或 Node >= 14.1.0

有关于特定Node版本的问题,请参阅:Chrome is downloaded but fails to launch on Node.js 14

调试与安装部署

  1. 在任意终端中切换到此文件所在文件夹,如:

    cd /opt/git/piggy-bro
  2. 安装依赖。

    npm i
  3. 启动运行脚本。

    npm run start

如果您遇到了无法启动的问题,请按照下面的条目确认:

  • 运行启动脚本提示 tsc: not found

    这是由于您没有全局安装typescript的npm包造成的。您只需在终端中执行:

    npm install -g typescript
    
    # 或者您在linux系统上运行,需要更高的命令执行权限……
    sudo npm install -g typescript

    安装完成后即可解决该问题。

  • 运行启动脚本提示创建浏览器进程失败

    报错信息类似于:

    [E] Piggy Bro 00:00:00 ERR PuppetWeChatBridge start() exception: Error: Failed to launch the browser process!
    /your/repo/path/node_modules/puppeteer/./local-chromium/linux-848005/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

    这是由于您的系统缺少必备的运行库导致的。

    您只需要检查您的系统中缺少的运行库即可,可以参照 Chrome headless doesn't launch on UNIX

    当然您也可以运行仓库根目录下已经配置好的脚本。如果您的操作系统是Debian系(如Ubuntu),请运行debian-preinstall.sh;如果是CentOS,请运行centos-preinstall.sh

反馈交流

如果您在使用过程中发现任何问题,或是有一些好的点子,欢迎直接为本仓库发送 issue。

piggy-bro's People

Contributors

reikohaku avatar

Watchers

 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.