Capps0611 / DayZ-Player-Leaderboard-Bot

A bot that uses FTP connection to generate and display a leaderboard to a discord server using the DayZ Mod @Intenz-Leaderboard
MIT License
4 stars 3 forks source link

help pleace? #7

Closed krussedull closed 3 years ago

krussedull commented 3 years ago

C:\Discordbot>npm run Lifecycle scripts included in dayz_player_leaderboard_bot: start nodemon --ignore "playerJsons/" dayzPlayerLeaderboardBot.js

C:\Discordbot>npm start

dayz_player_leaderboard_bot@1.0.0 start C:\Discordbot nodemon --ignore "playerJsons/" dayzPlayerLeaderboardBot.js

'nodemon' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! dayz_player_leaderboard_bot@1.0.0 start: nodemon --ignore "playerJsons/" dayzPlayerLeaderboardBot.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the dayz_player_leaderboard_bot@1.0.0 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! C:\Users\napst\AppData\Roaming\npm-cache_logs\2021-02-11T13_16_50_013Z-debug.log

C:\Discordbot>

Capps0611 commented 3 years ago

Run this -> npm install -g nodemon

krussedull commented 3 years ago

Will try

krussedull commented 3 years ago

now it pulls the files as it shoude, but do not write in discord channel

krussedull commented 3 years ago

Microsoft Windows [Version 10.0.19042.746] (c) 2020 Microsoft Corporation. Med enerett.

C:\WINDOWS\system32>cd..

C:\Windows>cd..

C:>cd discordbot

C:\Discordbot>npm i npm WARN dayz_player_leaderboard_bot@1.0.0 No repository field.

audited 64 packages in 0.594s found 0 vulnerabilities

C:\Discordbot>npm install -g nodemon C:\Users\napst\AppData\Roaming\npm\nodemon -> C:\Users\napst\AppData\Roaming\npm\node_modules\nodemon\bin\nodemon.js

nodemon@2.0.7 postinstall C:\Users\napst\AppData\Roaming\npm\node_modules\nodemon node bin/postinstall || exit 0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules\nodemon\node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

C:\Discordbot> C:\Discordbot> C:\Discordbot>npm i npm WARN dayz_player_leaderboard_bot@1.0.0 No repository field.

audited 64 packages in 0.596s found 0 vulnerabilities

C:\Discordbot>npm start

dayz_player_leaderboard_bot@1.0.0 start C:\Discordbot nodemon --ignore "playerJsons/" dayzPlayerLeaderboardBot.js

[nodemon] 2.0.7 [nodemon] to restart at any time, enter rs [nodemon] watching path(s): . [nodemon] watching extensions: js,mjs,json [nodemon] starting node dayzPlayerLeaderboardBot.js Connected as DayzEndStats#4962 Command received: leaderboard Arguments: FTPError: 550 -a /194.147.121.125_2424/SC/Leaderboard/: failed at FTPContext._onControlSocketData (C:\Discordbot\node_modules\basic-ftp\dist\FtpContext.js:282:39) at Socket. (C:\Discordbot\node_modules\basic-ftp\dist\FtpContext.js:123:44) at Socket.emit (events.js:315:20) at addChunk (internal/streams/readable.js:309:12) at readableAddChunk (internal/streams/readable.js:280:11) at Socket.Readable.push (internal/streams/readable.js:223:10) at TCP.onStreamRead (internal/stream_base_commons.js:188:23) { code: 550 } Command received: leaderboard Arguments: FTPError: 550 -a /194.147.121.125_2424/SC/Leaderboard/: failed at FTPContext._onControlSocketData (C:\Discordbot\node_modules\basic-ftp\dist\FtpContext.js:282:39) at Socket. (C:\Discordbot\node_modules\basic-ftp\dist\FtpContext.js:123:44) at Socket.emit (events.js:315:20) at addChunk (internal/streams/readable.js:309:12) at readableAddChunk (internal/streams/readable.js:280:11) at Socket.Readable.push (internal/streams/readable.js:223:10) at TCP.onStreamRead (internal/stream_base_commons.js:188:23) { code: 550 }

krussedull commented 3 years ago

rs [nodemon] starting node dayzPlayerLeaderboardBot.js Connected as DayzEndStats#4962 Command received: leaderboard Arguments: Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:209:20) { errno: -4077, code: 'ECONNRESET', syscall: 'read

krussedull commented 3 years ago

but it downlads all files whjit content now

krussedull commented 3 years ago

no help to get?