silverystar / adachi-bot Goto Github PK
View Code? Open in Web Editor NEWChatbot framework
Home Page: https://docs.adachi.top
License: MIT License
Chatbot framework
Home Page: https://docs.adachi.top
License: MIT License
雾切之回光 天目影打刀 桂木斩长正 破魔之弓 喜多院十文字 白辰之环
API里的数据最好可以维护,谢谢大佬了
您好,计算圣遗物随机秘境/掉落时,function randomInt(min: number, max: number): number;
的max是exlcusive的,导致计算结果中永远不会出现最后一个秘境(ID: 9)以及每个秘境的第二个圣遗物
private async getID( domainID: number = -1 ): Promise<number | string> {
return new Promise( ( resolve, reject ) => {
if ( domainID === -1 ) {
const domainNum: number = this.suitNames.length;
resolve( randomInt( 0, domainNum - 1 ) );
// --> resolve( randomInt( 0, domainNum ) );
} else if ( domainID < this.domains.length ) {
resolve( this.domains[domainID].product[randomInt( 0, 1 )] );
// --> resolve( this.domains[domainID].product[randomInt( 0, 2 )] );
} else {
reject( "未知的秘境ID" );
}
} );
}
私聊还是群里都是一样的,搞不太懂…
{"log":"\u001b[90m[2021-07-30T12:54:28.550] [MARK] [Android:QQ] - \u001b[39m----------\n","stream":"stdout","time":"2021-07-30T12:54:28.551232788Z"}
{"log":"\u001b[90m[2021-07-30T12:54:28.551] [MARK] [Android:QQ] - \u001b[39mPackage Version: [email protected] (Released on 2021/7/22)\n","stream":"stdout","time":"2021-07-30T12:54:28.551312617Z"}
{"log":"\u001b[90m[2021-07-30T12:54:28.551] [MARK] [Android:QQ] - \u001b[39mView Changelogs:https://github.com/takayama-lily/oicq/releases\n","stream":"stdout","time":"2021-07-30T12:54:28.551330229Z"}
{"log":"\u001b[90m[2021-07-30T12:54:28.551] [MARK] [Android:QQ] - \u001b[39m----------\n","stream":"stdout","time":"2021-07-30T12:54:28.551363849Z"}
{"log":"\u001b[90m[2021-07-30T12:54:28.552] [MARK] [Android:QQ] - \u001b[39m正在探索可用服务器...\n","stream":"stdout","time":"2021-07-30T12:54:28.552788171Z"}
{"log":"\u001b[32m[2021-07-30T12:54:29.066] [INFO] [Android:QQ] - \u001b[39m插件 @auth 已成功加载\n","stream":"stdout","time":"2021-07-30T12:54:29.070882007Z"}
{"log":"\u001b[32m[2021-07-30T12:54:29.248] [INFO] [Android:QQ] - \u001b[39m插件 @help 已成功加载\n","stream":"stdout","time":"2021-07-30T12:54:29.249927229Z"}
{"log":"\u001b[32m[2021-07-30T12:54:30.368] [INFO] [Android:QQ] - \u001b[39mRedis 数据库已连接\n","stream":"stdout","time":"2021-07-30T12:54:30.369086451Z"}
{"log":"\u001b[36m[2021-07-30T12:54:30.446] [DEBUG] [Android:QQ] - \u001b[39m{\n","stream":"stdout","time":"2021-07-30T12:54:30.446884274Z"}
{"log":" '203.205.232.55': 443,\n","stream":"stdout","time":"2021-07-30T12:54:30.446908242Z"}
{"log":" '203.205.255.221': 443,\n","stream":"stdout","time":"2021-07-30T12:54:30.446915262Z"}
{"log":" '203.205.255.220': 8080\n","stream":"stdout","time":"2021-07-30T12:54:30.446918255Z"}
{"log":"}\n","stream":"stdout","time":"2021-07-30T12:54:30.446921071Z"}
{"log":"\u001b[90m[2021-07-30T12:54:30.447] [MARK] [Android:QQ] - \u001b[39mconnecting to 203.205.232.55:443\n","stream":"stdout","time":"2021-07-30T12:54:30.447263478Z"}
{"log":"\u001b[90m[2021-07-30T12:54:30.451] [MARK] [Android:QQ] - \u001b[39m203.205.232.55:443 connected\n","stream":"stdout","time":"2021-07-30T12:54:30.451894173Z"}
{"log":"\u001b[90m[2021-07-30T12:54:30.912] [MARK] [Android:QQ] - \u001b[39mWelcome, MUK的稽器人 ! 初始化资源...\n","stream":"stdout","time":"2021-07-30T12:54:30.912865881Z"}
{"log":"\u001b[32m[2021-07-30T12:54:30.986] [INFO] [Android:QQ] - \u001b[39mExpress 服务器已启动\n","stream":"stdout","time":"2021-07-30T12:54:30.986707591Z"}
{"log":"\u001b[32m[2021-07-30T12:54:31.771] [INFO] [Android:QQ] - \u001b[39m插件 genshin 已成功加载\n","stream":"stdout","time":"2021-07-30T12:54:31.771296081Z"}
{"log":"\u001b[32m[2021-07-30T12:54:31.942] [INFO] [Android:QQ] - \u001b[39m插件 tools 已成功加载\n","stream":"stdout","time":"2021-07-30T12:54:31.944969571Z"}
{"log":"\u001b[90m[2021-07-30T12:54:31.956] [MARK] [Android:QQ] - \u001b[39m加载了3个好友,9个群。\n","stream":"stdout","time":"2021-07-30T12:54:31.956925493Z"}
{"log":"\u001b[90m[2021-07-30T12:54:31.956] [MARK] [Android:QQ] - \u001b[39m初始化完毕,开始处理消息。\n","stream":"stdout","time":"2021-07-30T12:54:31.956946956Z"}
{"log":"\u001b[32m[2021-07-30T13:02:27.777] [INFO] [Android:QQ] - \u001b[39mrecv from: [Private: QQ(friend)] help\n","stream":"stdout","time":"2021-07-30T13:02:27.777703575Z"}
流量大时图片显示会出问题,不过已经很强啦👍
Hi,我在使用的时候提示米游社接口报错:Please login,我觉得可能是cookies过期导致的;
通过米游社的论坛网页抓取的cookies是不是不能直接使用了~
感谢解答~
root@Gauss:/home/admin/Adachi-BOT-master# npm run serve
[email protected] serve /home/admin/Adachi-BOT-master
forever start -v -c ts-node app.ts
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info: Forever processing file: app.ts
root@Gauss:/home/admin/Adachi-BOT-master# npm run serve
[email protected] serve /home/admin/Adachi-BOT-master
forever start -v -c ts-node app.ts
运行 npm run serve 这个命令的结果如下 这样好像没有正常运行 这个怎么解决啊 就是没办法永久运行在服务器上
Originally posted by @GaussYuan191 in #40 (comment)
机器人查到的信息是小兔座,官方写可莉是四叶草座
以下为输出日志(敏感信息已隐藏),服务端已经收到了来自QQ的help指令,但是没有做出回复:
{"log":"\u001b[90m[2021-07-13T14:27:22.250] [MARK] [Android:000] - \u001b[39m----------\n","stream":"stdout","time":"2021-07-13T14:27:22.272061142Z"}
{"log":"\u001b[90m[2021-07-13T14:27:22.271] [MARK] [Android:000] - \u001b[39mPackage Version: [email protected] (Released on 2021/6/6)\n","stream":"stdout","time":"2021-07-13T14:27:22.272104828Z"}
{"log":"\u001b[90m[2021-07-13T14:27:22.271] [MARK] [Android:000] - \u001b[39mView Changelogs:https://github.com/takayama-lily/oicq/releases\n","stream":"stdout","time":"2021-07-13T14:27:22.272112685Z"}
{"log":"\u001b[90m[2021-07-13T14:27:22.271] [MARK] [Android:000] - \u001b[39m----------\n","stream":"stdout","time":"2021-07-13T14:27:22.272117347Z"}
{"log":"\u001b[90m[2021-07-13T14:27:22.275] [MARK] [Android:000] - \u001b[39m正在探索可用服务器...\n","stream":"stdout","time":"2021-07-13T14:27:22.275565504Z"}
{"log":"\u001b[32m[2021-07-13T14:27:23.624] [INFO] [Android:000] - \u001b[39m插件 @auth 已成功加载\n","stream":"stdout","time":"2021-07-13T14:27:23.62443587Z"}
{"log":"\u001b[32m[2021-07-13T14:27:24.309] [INFO] [Android:000] - \u001b[39m插件 @help 已成功加载\n","stream":"stdout","time":"2021-07-13T14:27:24.31009755Z"}
{"log":"\u001b[33m[2021-07-13T14:27:28.635] [WARN] [Android:000] - \u001b[39m探索服务器失败: timeout\n","stream":"stdout","time":"2021-07-13T14:27:28.636337812Z"}
{"log":"\u001b[90m[2021-07-13T14:27:28.635] [MARK] [Android:000] - \u001b[39mconnecting to msfwifi.3g.qq.com:8080\n","stream":"stdout","time":"2021-07-13T14:27:28.63685967Z"}
{"log":"\u001b[32m[2021-07-13T14:27:28.642] [INFO] [Android:000] - \u001b[39mRedis 数据库已连接\n","stream":"stdout","time":"2021-07-13T14:27:28.644345649Z"}
{"log":"\u001b[90m[2021-07-13T14:27:28.644] [MARK] [Android:000] - \u001b[39m203.205.255.220:8080 connected\n","stream":"stdout","time":"2021-07-13T14:27:28.644735271Z"}
{"log":"\u001b[36m[2021-07-13T14:27:28.819] [DEBUG] [Android:000] - \u001b[39m{\n","stream":"stdout","time":"2021-07-13T14:27:28.82336974Z"}
{"log":" '114.221.144.89': 14000,\n","stream":"stdout","time":"2021-07-13T14:27:28.823405913Z"}
{"log":" '14.215.138.110': 80,\n","stream":"stdout","time":"2021-07-13T14:27:28.823411724Z"}
{"log":" '203.205.255.220': 8080\n","stream":"stdout","time":"2021-07-13T14:27:28.823415557Z"}
{"log":"}\n","stream":"stdout","time":"2021-07-13T14:27:28.823419382Z"}
{"log":"\u001b[90m[2021-07-13T14:27:28.921] [MARK] [Android:000] - \u001b[39mWelcome, YY ! 初始化资源...\n","stream":"stdout","time":"2021-07-13T14:27:28.922165079Z"}
{"log":"\u001b[90m[2021-07-13T14:27:29.098] [MARK] [Android:000] - \u001b[39m加载了3个好友,2个群。\n","stream":"stdout","time":"2021-07-13T14:27:29.098386121Z"}
{"log":"\u001b[90m[2021-07-13T14:27:29.102] [MARK] [Android:000] - \u001b[39m初始化完毕,开始处理消息。\n","stream":"stdout","time":"2021-07-13T14:27:29.103003612Z"}
{"log":"(node:17) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined\n","stream":"stderr","time":"2021-07-13T14:27:29.44770925Z"}
{"log":" at new Cookies (/bot/src/plugins/genshin/module/cookies.ts:11:30)\n","stream":"stderr","time":"2021-07-13T14:27:29.4477405Z"}
{"log":" at /bot/src/plugins/genshin/init.ts:137:12\n","stream":"stderr","time":"2021-07-13T14:27:29.447745926Z"}
{"log":" at step (/bot/src/plugins/genshin/init.ts:44:23)\n","stream":"stderr","time":"2021-07-13T14:27:29.447750025Z"}
{"log":" at Object.next (/bot/src/plugins/genshin/init.ts:25:53)\n","stream":"stderr","time":"2021-07-13T14:27:29.447769425Z"}
{"log":" at fulfilled (/bot/src/plugins/genshin/init.ts:16:58)\n","stream":"stderr","time":"2021-07-13T14:27:29.447773529Z"}
{"log":" at processTicksAndRejections (internal/process/task_queues.js:97:5)\n","stream":"stderr","time":"2021-07-13T14:27:29.4477768Z"}
{"log":"(node:17) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)\n","stream":"stderr","time":"2021-07-13T14:27:29.447937277Z"}
{"log":"(node:17) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.\n","stream":"stderr","time":"2021-07-13T14:27:29.448085076Z"}
{"log":"\u001b[32m[2021-07-13T14:28:09.404] [INFO] [Android:000] - \u001b[39mrecv from: [Group: 讨论组(00), Member: XX(000)] help\n","stream":"stdout","time":"2021-07-13T14:28:09.41746551Z"}
setting.yml已设置headlers为空(""),以下为部分commands.yml内容:
adachi.help:
- help
adachi.detail:
- detail
期待作者大大的回复,谢谢!
npm start
no change
genshin-bot/Adachi-BOT/src/plugins/genshin/utils/update.ts:60
return tempWish.gacha_id;
TypeError: Cannot read property 'gacha_id' of undefined
##########
this error is occurred because when requesting poll information from
FETCH_GACHA_LIST: "https://webstatic.mihoyo.com/hk4e/gacha_info/cn_gf01/gacha/list.json" ,
it only respond back with indefinite pool info, yet the program is trying to access character&weapon pool info.
please add null check for not getting character&weapon pool info while pool is closed and API info is invalid
PS C:\Users\Admin\Desktop\Adachi-BOT> npm install
[email protected] install C:\Users\Admin\Desktop\Adachi-BOT\node_modules\puppeteer
node install.js
Downloading Chromium r884014 - 169.7 Mb [====================] 99% 0.3s
Chromium (884014) downloaded to C:\Users\Admin\Desktop\Adachi-BOT\node_modules\puppeteer.local-chromium\win64-884014
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\forever-monitor\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 460 packages from 433 contributors and audited 462 packages in 159.758s
21 packages are looking for funding
run npm fund
for details
found 3 vulnerabilities (2 low, 1 moderate)
run npm audit fix
to fix them, or npm audit
for details
如题
请问这个command.yml文件有详细的配置教程吗
更新过cookie 依旧报错
为什么没有宵夜为什么没有宵夜为什么没有宵夜为什么没有宵夜
按照docker安装方法在docker-compose up -d出现了下面的错误
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 354, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.6/http/client.py", line 1269, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1315, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1264, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.6/http/client.py", line 978, in send
self.connect()
File "/usr/local/lib/python3.6/site-packages/docker/transport/unixconn.py", line 43, in connect
sock.connect(self.unix_socket)
FileNotFoundError: [Errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/lib/python3.6/site-packages/urllib3/util/retry.py", line 368, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/lib/python3.6/site-packages/urllib3/packages/six.py", line 692, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 354, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.6/http/client.py", line 1269, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1315, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1264, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.6/http/client.py", line 978, in send
self.connect()
File "/usr/local/lib/python3.6/site-packages/docker/transport/unixconn.py", line 43, in connect
sock.connect(self.unix_socket)
urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/docker/api/client.py", line 214, in _retrieve_server_version
return self.version(api_version=False)["ApiVersion"]
File "/usr/local/lib/python3.6/site-packages/docker/api/daemon.py", line 181, in version
return self._result(self._get(url), json=True)
File "/usr/local/lib/python3.6/site-packages/docker/utils/decorators.py", line 46, in inner
return f(self, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/docker/api/client.py", line 237, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/docker-compose", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/compose/cli/main.py", line 81, in main
command_func()
File "/usr/local/lib/python3.6/site-packages/compose/cli/main.py", line 200, in perform_command
project = project_from_options('.', options)
File "/usr/local/lib/python3.6/site-packages/compose/cli/command.py", line 70, in project_from_options
enabled_profiles=get_profiles_from_options(options, environment)
File "/usr/local/lib/python3.6/site-packages/compose/cli/command.py", line 153, in get_project
verbose=verbose, version=api_version, context=context, environment=environment
File "/usr/local/lib/python3.6/site-packages/compose/cli/docker_client.py", line 43, in get_client
environment=environment, tls_version=get_tls_version(environment)
File "/usr/local/lib/python3.6/site-packages/compose/cli/docker_client.py", line 170, in docker_client
client = APIClient(use_ssh_client=not use_paramiko_ssh, **kwargs)
File "/usr/local/lib/python3.6/site-packages/docker/api/client.py", line 197, in __init__
self._version = self._retrieve_server_version()
File "/usr/local/lib/python3.6/site-packages/docker/api/client.py", line 222, in _retrieve_server_version
'Error while fetching server API version: {0}'.format(e)
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
请问是不是python版本问题,或者是依赖问题?
[禁止登录]当前上网环境异常,请更换网络环境或在常用设备上登录或稍后再试。(错误码:237)
以及询问一下cookies格式
谢谢大佬回答!
使用git pull拉取更新后启动bot,出现错误,QQ群内发送指令无响应。
启动时的错误日志如下:
{"log":"(node:24) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'main' of undefined\n","stream":"stderr","time":"2021-08-13T13:01:01.192609385Z"}
{"log":" at addPlugin (/bot/src/modules/plugin.ts:56:20)\n","stream":"stderr","time":"2021-08-13T13:01:01.192651468Z"}
{"log":" at /bot/src/plugins/genshin/init.ts:153:18\n","stream":"stderr","time":"2021-08-13T13:01:01.192670732Z"}
{"log":" at step (/bot/src/plugins/genshin/init.ts:44:23)\n","stream":"stderr","time":"2021-08-13T13:01:01.192674841Z"}
{"log":" at Object.next (/bot/src/plugins/genshin/init.ts:25:53)\n","stream":"stderr","time":"2021-08-13T13:01:01.19267863Z"}
{"log":" at fulfilled (/bot/src/plugins/genshin/init.ts:16:58)\n","stream":"stderr","time":"2021-08-13T13:01:01.192682532Z"}
{"log":" at processTicksAndRejections (internal/process/task_queues.js:97:5)\n","stream":"stderr","time":"2021-08-13T13:01:01.192686293Z"}
{"log":"(node:24) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)\n","stream":"stderr","time":"2021-08-13T13:01:01.192690207Z"}
{"log":"(node:24) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.\n","stream":"stderr","time":"2021-08-13T13:01:01.192707968Z"}
https://github.com/theBowja/genshin-db/blob/main/examples.md
npm install genshin-db
const genshindb = require('genshin-db');
应该能减少不少工作量
比如 万叶,外号叶天帝,希望输入查询指令“我的 叶天帝/天帝”也能查询到 ”我的 枫原万叶“ 的信息
此外,这个添加角色外号的操作希望能整合到一个yml 或者 直接新增指令 私聊/群聊bot进行角色外号添加。
❤❤❤❤❤❤
昨天米游社做了更新,限制每个cookie只能查询30次,机器人能不能支持填入多个cookie,然后每个cookie轮流用呢
希望未来可以增加通过指令查询今天对应的天赋书与适用的角色、武器突破素材与对应的武器与每天固定向所在的群聊里发送上述消息的功能。
开发大大辛苦啦!
12.22.1和12.13.1都无法使用
删除bot的docker容器与镜像后使用docker-compose up -d重新拉取,查询日志发现启动失败,
略。setting.yml文件中命令头字母已用“”处理,cookies.yml格式符合“- _MHYUID”。重新拉取代码前各项功能一切正常,拉取代码过程中未对config文件夹内容进行改动。
/bot/node_modules/[email protected]@ts-node/src/index.ts:513
return new TSError(diagnosticText, diagnosticCodes)
^
TSError: ⨯ Unable to compile TypeScript:
src/modules/message.ts(41,14): error TS2339: Property 'message_type' does not exist on type 'CommonMessageEventData'.
src/modules/message.ts(45,14): error TS2339: Property 'message_type' does not exist on type 'CommonMessageEventData'.
at createTSError (/bot/node_modules/[email protected]@ts-node/src/index.ts:513:12)
at reportTSError (/bot/node_modules/[email protected]@ts-node/src/index.ts:517:19)
at getOutput (/bot/node_modules/[email protected]@ts-node/src/index.ts:752:36)
at Object.compile (/bot/node_modules/[email protected]@ts-node/src/index.ts:968:32)
at Module.m._compile (/bot/node_modules/[email protected]@ts-node/src/index.ts:1056:42)
at Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Object.require.extensions.<computed> [as .ts] (/bot/node_modules/[email protected]@ts-node/src/index.ts:1059:12)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `ts-node app.ts`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-09-01T15_39_36_200Z-debug.log
错误:
Error: empty message
at Builder.buildAndSend (E:\Adachi-BOT\node_modules\oicq\lib\message\builder.js:905:19)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Client._useProtocol (E:\Adachi-BOT\node_modules\oicq\lib\client.js:179:25)
建议:每天多次求签可以返回相同内容,而非第二次及之后提示今日求过了
issue狂魔又双叒叕来了
info缺少旅行者,发空、荧、旅行者都没触发
运行docker-compose up -d后返回
Starting redis ... done Starting bot ... done
但是QQ输入help或#help后机器人无反应。我想看一下后台日志,但是不知道如何进入后台查看,想请教一下开发大大。
顺便想了解一下机器人在qq侧的调用指令,比如我想查询某武器的信息需要输入什么指令。第一次使用这个bot,很多内容不了解,还望见谅!
如题,挺好一原神bot但是只能当原神bot…
虽然说我也是开发者但是我不会JavaScript呜呜
最近看你更了2.0,1.0 的API 已经不支持新的人物和武器了,我自己试着迁移了下,没写过Node 比较费劲,请问你这还会维护1.0 的API 吗
报错信息
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info: Forever processing file: app.ts
(node:21564) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use node --trace-warnings ...
to show where the warning was created)
(node:21564) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
疑似使用nodejs v14+版本引起,望解决
米游社接口报错: invalid input format: strconv.ParseUint: parsing "NaN": invalid syntax, key=uid
但是我cookie已经填上去了呢
删除了原有的adachi文件夹和有关的docker容器与images,重新拉取git,按步骤配置并启动bot时,前三步未见报错,第四步开始出现了问题,无法完成启动。
错误代码如下:
Step 4/5 : RUN cnpm install
---> Running in 2dd54a359fc2
platform unsupported forever@3.0.4 › forever-monitor@3.0.3 › chokidar@2.1.8 › fsevents@^1.2.7 Package require os(darwin) not compatible with your platform(linux)
[fsevents@^1.2.7] optional install error: Package require os(darwin) not compatible with your platform(linux)
✔ Installed 23 packages
✔ Linked 473 latest versions
[1/1] scripts.install puppeteer@^10.0.0 run "node install.js", root: "/bot/node_modules/[email protected]@puppeteer"
ERROR: Failed to set up Chromium r901912! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
Error: end of central directory record signature not found
at /bot/node_modules/_yauzl@2.10.0@yauzl/index.js:187:14
at /bot/node_modules/_yauzl@2.10.0@yauzl/index.js:631:5
at /bot/node_modules/_fd-slicer@1.1.0@fd-slicer/index.js:32:7
at FSReqCallback.wrapper [as oncomplete] (fs.js:520:5)
[npminstall:runscript:error] puppeteer@^10.0.0 scripts.install run "node install.js" error: Error [RunScriptError]: Run "sh -c node install.js" error, exit code 1
at ChildProcess.<anonymous> (/usr/lib/node_modules/cnpm/node_modules/runscript/index.js:96:21)
at ChildProcess.emit (events.js:314:20)
at maybeClose (internal/child_process.js:1022:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) {
stdio: [Object],
exitcode: 1
}
✖ Install fail! RunScriptError: post install error, please remove node_modules before retry!
Run "sh -c node install.js" error, exit code 1
RunScriptError: Run "sh -c node install.js" error, exit code 1
at ChildProcess.<anonymous> (/usr/lib/node_modules/cnpm/node_modules/runscript/index.js:96:21)
at ChildProcess.emit (events.js:314:20)
at maybeClose (internal/child_process.js:1022:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
npminstall version: 3.28.0
npminstall args: /usr/bin/node /usr/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --fix-bug-versions --china --userconfig=/root/.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.nlark.com
ERROR: Service 'bot' failed to build: The command '/bin/sh -c cnpm install' returned a non-zero code: 1
如题
如题
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.