Connection wrapper written in golang. This project contains one file bot/bot.go which provides all functionality. To set up the bot you need to:
- Get the token (you can connect to nektome without token, but you have to solve the captcha).
- Set all handlers for messages (originally bot has few handlers to host simeple chat-client).
- Create main loop (main.go has an example of simple client).
To get the trusted token you need to solve the captcha by yourself. First open developer tools in your browser and go to the address http://nekto.me/chat/#/ Open netowork tab and set filter to websockets. There is only one websocket connection, open this and go to messages tab. Pick third message and copy the token.
After that start search interlocutor, click the green button. Solve the captcha. After solving you got the trunsted token.
git clone "https://github.com/carsenolson/nektomebot.git"
go build -o main main.go
To start chatting you can grab created token from directory tokens/tokens, each token is separated by ";". But it's not safe, these tokens are public so every user can use them. For example:
./main ead236099a6a46d631a7f4c6f5b91842eb8f71e87237d149dff9fca7971009cb
The structures and discriptions of nektome JSON messages you can find at http://im.nekto.me/docs/