Giter Club home page Giter Club logo

lilywhitebot's Issues

使用now部署卡在加载Loading plugin: pia IRCbot无法注册

正常部署:
ircbot可以正常注册并且加入到channel
image
使用now部署

12:46:49.406  
Retrieving list of deployment files...
12:46:49.586  
Downloading 49 deployment files...
12:46:51.717  
Installing build runtime...
12:46:52.098  
Build runtime installed: 380.494ms
12:46:52.432  
Looking up build cache...
12:46:52.533  
Build cache found. Downloading...
12:46:52.931  
Build cache downloaded [14.51 MB]: 397.038ms
12:46:53.270  
Installing dependencies...
12:46:54.486  
up to date in 0.82s
12:46:54.546  
2 packages are looking for funding
12:46:54.546  
  run `npm fund` for details
12:46:54.902  
> [email protected] build /zeit/6db81c56
12:46:54.902  
> npm install
12:46:56.324  
audited 419 packages in 1.034s
12:46:56.389  
2 packages are looking for funding
12:46:56.389  
  run `npm fund` for details
12:46:56.389  
found 1 moderate severity vulnerability
12:46:56.389  
  run `npm audit fix` to fix them, or `npm audit` for details
12:46:56.582  
> [email protected] start /zeit/6db81c56
12:46:56.582  
> node index.js
12:46:56.701  
2020-05-10 04:46:56 [�[32mINFO�[39m] LilyWhiteBot: Multi-platform message transport bot.
12:46:56.702  
2020-05-10 04:46:56 [�[32mINFO�[39m] Version: 1.5.0
12:46:56.702  
2020-05-10 04:46:56 [�[32mINFO�[39m] 
12:46:56.702  
2020-05-10 04:46:56 [�[32mINFO�[39m] Enabled clients: IRC, Telegram
12:46:56.702  
2020-05-10 04:46:56 [�[32mINFO�[39m] Starting IRC bot...
12:46:56.736  
2020-05-10 04:46:56 [�[32mINFO�[39m] IRC bot has started.
12:46:56.736  
2020-05-10 04:46:56 [�[32mINFO�[39m] Starting Telegram bot...
12:46:56.753  
2020-05-10 04:46:56 [�[32mINFO�[39m] Telegram bot has started.
12:46:56.753  
2020-05-10 04:46:56 [�[32mINFO�[39m] 
12:46:56.753  
2020-05-10 04:46:56 [�[32mINFO�[39m] Loading plugins...
12:46:56.753  
2020-05-10 04:46:56 [�[32mINFO�[39m] Loading plugin: transport
12:46:56.866  
2020-05-10 04:46:56 [�[32mINFO�[39m] Loading plugin: groupid-tg
12:46:56.867  
2020-05-10 04:46:56 [�[32mINFO�[39m] Loading plugin: ircquery
12:46:56.867  
2020-05-10 04:46:56 [�[32mINFO�[39m] Loading plugin: irccommand
12:46:56.868  
2020-05-10 04:46:56 [�[32mINFO�[39m] Loading plugin: pia

会卡在这里,tgbot好像没有问题,启动两个tgbot这里会出现提示,求大佬帮忙看一下now部署时候ircbot为什么不能正常使用

image

{
    "name": "lilywhitebot",
    "version": "1.5.0",
    "description": "多聊天群互联机器人(目前支持 QQ、Telegram、IRC、Discord)",
    "repository": "github:infnan/LilyWhiteBot",
    "license": "AGPL-3.0-or-later",
    "bugs": {
        "url": "https://github.com/infnan/LilyWhiteBot/issues"
    },
    "dependencies": {
        "cqhttp": "^1.2.0",
        "discord.js": "^12.0.1",
        "irc-colors": "~1.5.0",
        "irc-upd": "~0.10.0",
        "ishisashiencoding": "^0.4.0",
        "js-yaml": "^3.13.1",
        "lru-cache": "^5.1.1",
        "request": "~2.88.2",
        "sharp": "^0.25.2",
        "string-format": "^2.0.0",
        "telegraf": "^3.38.0",
        "wechat4u": "^0.7.7",
        "winston": "^3.2.1"
    },
    "engines": {
        "node": ">=12.0.0"
    },
    "scripts": {
        "build": "npm install",
        "start": "node index.js",
        "install-start": "npm install && node main.js"
    }
}

将cqsocketapi更换成CoolQ HTTP API

目前已知问题:

  1. cqsocketapi不稳定,经常发生QQ端发不出去消息的问题。
  2. cqsocketapi不支持跨服务器或容器化部署,互联程序不得不放在coolq的容器中运行。更换http api之后可将程序分离到另一容器或服务器上面。
  3. cqsocketapi需要考虑字符编码问题

QQ号负载均衡

由于QQ消息量过大时会封号,可考虑一次性关联多个QQ号,消息量太大时由这些QQ号轮流发言,实现负载均衡

qq 图片无法正常转发

image
上报消息内容:

{'raw_message': '[CQ:image,file=ACB7C4CFF4C9B861801FF5F40261E70C.gif]', 'message_id': 5256, 'post_type': 'message', 'message_type': 'group', 'time': 1589             103120, 'user_id': xxx, 'anonymous': None, 'font': 10057432, 'group_id': xxx, 'sub_type': 'normal', 'sender': {'age': 0, 'area': '瑞典', 'nic             kname': 'S', 'role': 'owner', 'title': '', 'card': '', 'user_id': xxx, 'sex': 'unknown', 'level': 'py群员'}, 'message': '[CQ:image,file=A             CB7C4CFF4C9B861801FF5F40261E70C.gif,url=https://gchat.qpic.cn/gchatpic_new/568093910/2150958474-3199814203-ACB7C4CFF4C9B861801FF5F40261E70C/0?term=2]', '             self_id': 212521306}

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.