Skip to content

carsenolson/nektomebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connection wrapper for nektome anonymous chat.

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).

How to get "trusted" token

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.

Installation

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

JSON messages docs

The structures and discriptions of nektome JSON messages you can find at http://im.nekto.me/docs/

About

connection wrapper for nekto.me in golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages