Code Monkey home page Code Monkey logo

kazuhabot's Introduction

Metrics

kazuhabot's People

Contributors

feilongproject avatar

Stargazers

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

Watchers

 avatar  avatar

kazuhabot's Issues

not found function signAuto() at "C:\QQqunproBOT\Yunzai-Bot-pd/src/plugins/dailyManager.ts"

[2022-11-16T12:36:35.219] [\src\lib\IMessageEx.ts:48:17] [INFO] 私信{15553232610050278809}53018331656475526:#开启签到
[2022-11-16T12:36:35.220] [\src\index.ts:42:13] [DEBUG] ./plugins/dailyManager:signAuto
[2022-11-16T12:36:35.222] [\src\index.ts:52:25] [ERROR] not found function signAuto() at "C:\QQqunproBOT\Yunzai-Bot-pd/src/plugins/dailyManager.ts"
是不是因为/和\的问题..
环境WinServer2019

[error]问一下咋解决

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#".] {
code: 'ERR_UNHANDLED_REJECTION'

dev分支启动会出现TS2345错误

环境是v18.14.2/Ubuntu22.04,配了config文件之后main分支的能启动,dev的会出现TS2345错误(还有能兼容下公域Bot的消息嘛)

src/init.ts:1:42 - error TS2724: '"qq-guild-bot"' has no exported member named 'OpenAPI'. Did you mean 'IOpenAPI'?

/root/TRSS_Yunzai/Kazuha/node_modules/.pnpm/[email protected]_ksn4eycaeggbrckn3ykh37hwf4/node_modules/ts-node/src/index.ts:859
    return new TSError(diagnosticText, diagnosticCodes, diagnostics);
           ^
TSError: ⨯ Unable to compile TypeScript:
src/init.ts:1:42 - error TS2724: '"qq-guild-bot"' has no exported member named 'OpenAPI'. Did you mean 'IOpenAPI'?

1 import { createOpenAPI, createWebsocket, OpenAPI } from 'qq-guild-bot';
                                           ~~~~~~~
src/init.ts:91:14 - error TS7006: Parameter 'err' implicitly has an 'any' type.

91     }).catch(err => {
                ~~~

    at createTSError (/root/TRSS_Yunzai/Kazuha/node_modules/.pnpm/[email protected]_ksn4eycaeggbrckn3ykh37hwf4/node_modules/ts-node/src/index.ts:859:12)
    at reportTSError (/root/TRSS_Yunzai/Kazuha/node_modules/.pnpm/[email protected]_ksn4eycaeggbrckn3ykh37hwf4/node_modules/ts-node/src/index.ts:863:19)
    at getOutput (/root/TRSS_Yunzai/Kazuha/node_modules/.pnpm/[email protected]_ksn4eycaeggbrckn3ykh37hwf4/node_modules/ts-node/src/index.ts:1077:36)
    at Object.compile (/root/TRSS_Yunzai/Kazuha/node_modules/.pnpm/[email protected]_ksn4eycaeggbrckn3ykh37hwf4/node_modules/ts-node/src/index.ts:1433:41)
    at Module.m._compile (/root/TRSS_Yunzai/Kazuha/node_modules/.pnpm/[email protected]_ksn4eycaeggbrckn3ykh37hwf4/node_modules/ts-node/src/index.ts:1617:30)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
    at Object.require.extensions.<computed> [as .ts] (/root/TRSS_Yunzai/Kazuha/node_modules/.pnpm/[email protected]_ksn4eycaeggbrckn3ykh37hwf4/node_modules/ts-node/src/index.ts:1621:12)
    at Module.load (node:internal/modules/cjs/loader:997:32)
    at Function.Module._load (node:internal/modules/cjs/loader:838:12)
    at Module.require (node:internal/modules/cjs/loader:1021:19) {
  diagnosticCodes: [ 2724, 7006 ]
}

这个问题如何解决呢 提示4014

[2023-01-12T16:05:07.027] [INFO] 初始化:正在创建定时任务
[2023-01-12T16:05:07.166] [INFO] 初始化:正在检索图鉴资源
[2023-01-12T16:05:07.167] [WARN] 初始化:图鉴资源未找到,跳过检索
[2023-01-12T16:05:07.170] [INFO] 初始化:正在创建热加载监听
[2023-01-12T16:05:07.173] [INFO] 初始化:正在连接数据库
[2023-01-12T16:05:07.190] [INFO] 初始化:redis数据库连接成功
[2023-01-12T16:05:07.190] [INFO] 初始化:正在创建client与ws
[2023-01-12T16:05:07.242] [INFO] 初始化:正在创建频道树
[2023-01-12T16:05:07.398] [MARK] test(13032748744806857148)
[CLIENT] 开启
shards 不存在
[CLIENT] 连接关闭 4014
[CLIENT] 重新连接中,尝试次数: 1
[2023-01-12T16:05:07.597] [MARK] test(13032748744806857148)-节目丨校园影院(60045042)-father:60045046
[2023-01-12T16:05:07.597] [MARK] test(13032748744806857148)-K歌丨欢乐KTV(60045043)-father:60045046
[2023-01-12T16:05:07.599] [MARK] test(13032748744806857148)-学习丨资料分享(60045038)-father:60045045
[2023-01-12T16:05:07.600] [MARK] test(13032748744806857148)-讨论丨校园日常(60045039)-father:60045045
[2023-01-12T16:05:07.601] [MARK] test(13032748744806857148)-生活丨二手闲置(60045040)-father:60045045
[2023-01-12T16:05:07.601] [MARK] test(13032748744806857148)-聊天丨闲聊交友(60045041)-father:60045045
[2023-01-12T16:05:07.602] [MARK] test(13032748744806857148)-校园BBS(60045045)-father:0
[2023-01-12T16:05:07.602] [MARK] test(13032748744806857148)-兴趣交流(60045046)-father:0
[2023-01-12T16:05:07.603] [MARK] test(13032748744806857148)-(60045044)-father:0
[CLIENT] 开启
shards 不存在
[CLIENT] 连接关闭 4014
[CLIENT] 重新连接中,尝试次数: 2
[CLIENT] 开启
shards 不存在
[CLIENT] 连接关闭 4014
[CLIENT] 重新连接中,尝试次数: 3
[CLIENT] 开启
shards 不存在
[CLIENT] 连接关闭 4014
[CLIENT] 重新连接中,尝试次数: 4
[CLIENT] 开启
shards 不存在
[CLIENT] 连接关闭 4014
[CLIENT] 重新连接中,尝试次数: 5
[CLIENT] 开启
shards 不存在
[CLIENT] 连接关闭 4014
[CLIENT] 重新连接中,尝试次数: 6
[CLIENT] 开启
shards 不存在
[CLIENT] 连接关闭 4014
[CLIENT] 重新连接中,尝试次数: 7
[CLIENT] 开启
shards 不存在
[CLIENT] 连接关闭 4014
[CLIENT] 重新连接中,尝试次数: 8
[CLIENT] 开启
shards 不存在
[CLIENT] 连接关闭 4014
[CLIENT] 重新连接中,尝试次数: 9
[CLIENT] 开启
shards 不存在
[CLIENT] 连接关闭 4014
[CLIENT] 重新连接中,尝试次数: 10
[CLIENT] 开启
shards 不存在
[CLIENT] 连接关闭 4014
[CLIENT] 超过重试次数,连接终止

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.