Git Product home page Git Product logo

node-autotip's Introduction

Hi there, I am builder_247! ๐Ÿ‘‹


builder-247's github stats

node-autotip's People

Contributors

builder-247 avatar dueel-dev avatar falsehonesty avatar hashdashme avatar moire9 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

node-autotip's Issues

Limbo instead of reconnecting

Maybe it is a good idea to send the player to the limbo first by letting it get kicked for spam or using an invalid character, because commands also work there and it is also the place people afk with normal autotip on.

[Solved] Suddenly not working anymore: SyntaxError

Hi,
I was using node-autotip yesterday for my first time for like 20 mins or so, and today I wanted to let it run for a somewhat longer time. (Its running on a server)
However today it wouldn't let me start it. I tried to move to different lobby and reinstall it completely, but that didn't help it.

I get the same error every time:

> [email protected] start /home/****/****/node-autotip
> node index

events.js:183
      throw er; // Unhandled 'error' event
      ^

SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at /home/****/****/node-autotip/node_modules/yggdrasil/lib/utils.js:28:23
    at IncomingMessage.<anonymous> (/home/****/****/node-autotip/node_modules/phin/lib/phin.compiled.js:1:2162)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index`
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!     /home/****/.npm/_logs/2020-01-19*****-debug.log

Thanks for your help!

TypeError: Cannot read property 'value' of undefined

Every time i run it after a while it gives this error

C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\node_modules\minecraft-protocol\src\transforms\framing.js:67
} else { throw e }
^

TypeError: Cannot read property 'value' of undefined
at getHoverData (C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\index.js:33:34)
at Bot.onMessage (C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\index.js:104:17)
at Bot.emit (events.js:315:20)
at Client. (C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\node_modules\mineflayer\lib\plugins\chat.js:69:9)
at Client.emit (events.js:315:20)
at FullPacketParser. (C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\node_modules\minecraft-protocol\src\client.js:87:12)
at FullPacketParser.emit (events.js:315:20)
at addChunk (C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\node_modules\readable-stream\lib_stream_readable.js:298:12)
at readableAddChunk (C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\node_modules\readable-stream\lib_stream_readable.js:280:11)
at FullPacketParser.Readable.push (C:\Users\Duel\Downloads\Minecraft Programs\node-autotip-master\node_modules\readable-stream\lib_stream_readable.js:241:10)

Microsoft Account

How would i setup a Minecraft Account that is migrated to my Microsoft Account to make this run because when I try to run it it just stops.
image

When internet connection is interrupted via some routers, the program crashes.

My parents have my internet set to automatically turn off at 21:00. However, this is not what you think. Instead of it turning off, instead, all requests are intercepted and sent to a random xfinity 404 page, essentially blocking communication between client and server. However, this causes an error in node-at.

/mnt/d/Users/SirNapkin1334/Desktop/node-autotip-mod/node_modules/yggdrasil/lib/utils.js:23
    if (resp.body.length === 0) {
             ^

TypeError: Cannot read property 'body' of null
    at /mnt/d/Users/SirNapkin1334/Desktop/node-autotip-mod/node_modules/yggdrasil/lib/utils.js:23:14
    at ClientRequest.<anonymous> (/mnt/d/Users/SirNapkin1334/Desktop/node-autotip-mod/node_modules/phin/lib/phin.compiled.js:1:2551)
    at ClientRequest.emit (events.js:198:13)
    at TLSSocket.socketErrorListener (_http_client.js:401:9)
    at TLSSocket.emit (events.js:198:13)
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index`
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!     /home/sirnapkin1334/.npm/_logs/2020-05-05T04_21_00_075Z-debug.log

Also, the ability to change the node-at log location, perhaps via .env, would be nice, as accessing the home directory from Windows on WSL is slightly inconvenient, and IMO it would make more sense to have the logs in the node-at folder. Anyways, here is the log: 2020-05-05T04_21_00_075Z-debug.log

TypeError: logger.error is not a function

Hi, I'm currently trying to run the script,
but I got an error instead...

> [email protected] start /home/pi/minecraft/node-autotip
> node index

[7:06:22 PM] [INFO] Logged on mc.hypixel.net:25565
/home/pi/minecraft/node-autotip/lib/writer.js:34
      logger.error(err);
             ^

TypeError: logger.error is not a function
    at fs.writeFile (/home/pi/minecraft/node-autotip/lib/writer.js:34:14)
    at fs.open (fs.js:1169:7)
    at FSReqWrap.args [as oncomplete] (fs.js:140:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index`
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!     /home/pi/.npm/_logs/2019-05-06T11_06_23_025Z-debug.log

I'm running this on a raspberry pi if that helps...
Thanks in Advance!

Invalid credentials

I have a microsoft account, and it says my credentials are wrong. Im 100% sure its them. Why is it like that??
image

HIDE_JOIN_MESSAGES does not account for new join / leave messages

I would make a PR but I just cannot find the piece of code that detects this. The config setting "HIDE_JOIN_MESSAGES" does not work, as the join messages format was changed, from <playername> <left|joined> to <Guild|Friend> > <playername> <joined|left>. Do note that it is now differently colored. Example of my chat getting spammed by it:
image
Should be a fairly simple fix, just replace the string that is used for detection.

Temporarily disable on player join

When the player logs into hypixel, we get kicked with this message:

info:  Kicked for {"extra":[{"color":"red","text":"You logged in from another location!"}],"text":""}

When that happens, wait 5 minutes and check hypixel API for player online status.
https://api.hypixel.net/#tag/Player-Data/paths/~1status/get

If the user is online, just wait another 5 minutes.
If it says the user is offline, we can reconnect and continue.

logger.info(`Kicked for ${reason}`);

Getting blocked from using /tip

Hypixel blocked me from using the /tip command for 5 minutes since the bot is spamming it , maybe add a detection to check for the message and pause the bot for 5 minutes if it shows up?

Thrown Unhandled Error

Hi Again,
Recently node-autotip decided to not work. For some reason the script decides to crash around when it's sending the player into limbo.

> [email protected] start /home/pi/minecraft/node-autotip
> node index

2019-06-16T07:50:46.686Z game:  Couldn't connect you to that server, so you were put in the SkyBlock lobby!
2019-06-16T07:50:46.945Z info:  You've earned 1057730 Exp, 1185656 Coins and 5934000 Karma using node-autotip
2019-06-16T07:50:47.995Z info:  Sending player to limbo...
2019-06-16T07:51:08.768Z game:                                       
2019-06-16T07:51:08.818Z game:                           
events.js:174
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at WriteWrap.afterWrite [as oncomplete] (net.js:779:14)
Emitted 'error' event at:
    at Client.self._client.on (/home/pi/minecraft/node-autotip/node_modules/mineflayer/index.js:93:12)
    at Client.emit (events.js:189:13)
    at Socket.onFatalError (/home/pi/minecraft/node-autotip/node_modules/minecraft-protocol/src/client.js:139:12)
    at Socket.emit (events.js:194:15)
    at onwriteError (_stream_writable.js:431:12)
    at onwrite (_stream_writable.js:456:5)
    at _destroy (internal/streams/destroy.js:40:7)
    at Socket._destroy (net.js:604:3)
    at Socket.destroy (internal/streams/destroy.js:32:8)
    at WriteWrap.afterWrite [as oncomplete] (net.js:781:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index`
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!     /home/pi/.npm/_logs/2019-06-16T07_51_09_241Z-debug.log

And the full log...

0 info it worked if it ends with ok
1 verbose cli [ '/home/pi/.nvm/versions/node/v10.15.3/bin/node',
1 verbose cli   '/home/pi/.nvm/versions/node/v10.15.3/bin/npm',
1 verbose cli   'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: /home/pi/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/minecraft/node-autotip/node_modules/.bin:/home/pi/.nvm/versions/node/v10.15.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
9 verbose lifecycle [email protected]~start: CWD: /home/pi/minecraft/node-autotip
10 silly lifecycle [email protected]~start: Args: [ '-c', 'node index' ]
11 silly lifecycle [email protected]~start: Returned: code: 1  signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `node index`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/home/pi/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:189:13)
13 verbose stack     at ChildProcess.<anonymous> (/home/pi/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:189:13)
13 verbose stack     at maybeClose (internal/child_process.js:970:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/pi/minecraft/node-autotip
16 verbose Linux 4.19.50-v7+
17 verbose argv "/home/pi/.nvm/versions/node/v10.15.3/bin/node" "/home/pi/.nvm/versions/node/v10.15.3/bin/npm" "start"
18 verbose node v10.15.3
19 verbose npm  v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: `node index`
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Thanks Again in Advance! (:
I'm still using a Raspberry Pi to run it...

TypeError: Cannot read property 'value' of undefined

hastebin is broken so just pasting the error here ;/

C:\Users\david\Desktop\Downloads\node-autotip-master (1)\node-autotip-master\node_modules\minecraft-protocol\src\transforms\framing.js:66
} else { throw e }
^

TypeError: Cannot read property 'value' of undefined
at getHoverData (C:\Users\david\Desktop\Downloads\node-autotip-master (1)\node-autotip-master\index.js:40:34)
at Bot.bot.on (C:\Users\david\Desktop\Downloads\node-autotip-master (1)\node-autotip-master\index.js:103:17)
at Bot.emit (events.js:182:13)
at Client.bot._client.on (C:\Users\david\Desktop\Downloads\node-autotip-master (1)\node-autotip-master\node_modules\mineflayer\lib\plugins\chat.js:55:9)
at Client.emit (events.js:182:13)
at FullPacketParser.deserializer.on (C:\Users\david\Desktop\Downloads\node-autotip-master (1)\node-autotip-master\node_modules\minecraft-protocol\src\client.js:82:12)
at FullPacketParser.emit (events.js:182:13)
at addChunk (C:\Users\david\Desktop\Downloads\node-autotip-master (1)\node-autotip-master\node_modules\protodef\node_modules\readable-stream\lib_stream_readable.js:297:12)
at readableAddChunk (C:\Users\david\Desktop\Downloads\node-autotip-master (1)\node-autotip-master\node_modules\protodef\node_modules\readable-stream\lib_stream_readable.js:279:11)
at FullPacketParser.Readable.push (C:\Users\david\Desktop\Downloads\node-autotip-master (1)\node-autotip-master\node_modules\protodef\node_modules\readable-stream\lib_stream_readable.js:240:10)

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.