SO-ChatBot icon indicating copy to clipboard operation
SO-ChatBot copied to clipboard

node.js

Open Raynos opened this issue 13 years ago • 10 comments

y u no

Raynos avatar Dec 26 '11 21:12 Raynos

Out of spite

Zirak avatar Dec 26 '11 22:12 Zirak

Tell you what: If you change the bot to not leech off of the chat xhr for input and off of the chat DOM for output, I'll use node.

Zirak avatar Dec 28 '11 03:12 Zirak

So you basically mean "If you write the IO layer for me and allow me to port the bot verbatim"

Raynos avatar Dec 28 '11 12:12 Raynos

Started a port to node. Basics are probably covered, just need to do the login part (that'll be super annoying) and actually retrieving chatroom data. Know any good js html->DOM parsers or should I brush up on my regex-Cthulu-summoning skills?

Zirak avatar Dec 31 '11 09:12 Zirak

Know any good js html->DOM parsers or should I brush up on my regex-Cthulu-summoning skills?

Er... documentFragment and innerHTML?

ryankinal avatar Nov 20 '12 19:11 ryankinal

Too bad they're not available on node.

Zirak avatar Nov 20 '12 19:11 Zirak

Aaaaand I'm a moron

ryankinal avatar Nov 20 '12 19:11 ryankinal

Using Zombie.js would mean you'd get to log in and wouldn't have to change much of the IO code

AmaanC avatar Nov 20 '12 19:11 AmaanC

Commenting here so I can feel important.

SomeKittens avatar Mar 07 '14 00:03 SomeKittens

This has come up on several discussions so I'll comment on this here (sorry for any stupidity, I'm really tired):

This won't "just happen". The bot won't be re-written since let's be honest, nobody gives enough fucks. It'll be a path of slow migration, slowly decoupling the bot from the chat DOM/BOM.

We can also go the Phatom/Selenium/whatever route but I'm less happy about it. Decoupling from the chat's DOM and BOM gives tons of advantages. It'll at most be a workaround so the bot can work headless, i.e. what we have now run-headless (sort of).

Meh.

Zirak avatar Apr 03 '16 12:04 Zirak