Skip to content

Mikulskii/Odysee-simplest-chat-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

About

A very simple CJS script for connecting to Odysee stream chat. In addition to messages, you can also catch donations with “LBC credits” (the internal currency of the site, such as bits on Twitch), as well as the current number of viewers. “Follow”-events is not coming.

How to use

Since this is javascript, you need nodejs and npm installed. Create a folder and copy odysee_chat_logger.js to it.

Being inside the newly created directory, you need to install the ws package:

npm i ws

Unfortunately, I have not been able to find an automated way to get the correct wss link with the required ids.

Therefore, you will have to extract it manually through the browser inspector (it looks like 'wss://sockety.odysee.tv/ws/commentron?id=xxxxxxxx):

Open the page with the stream in the browser -> open the inspector (F12) -> Network tab -> WS -> Refresh the page (F5 or Ctrl+R) -> click on the line where there is the word "commentron" -> Headers -> there will be a Request URL line with with the link, copy it.

The resulting link must be substituted in the script with the line const link = "" and enclosed in quotation marks.

Run node odysee_chat_logger.js

About

Basic Bot to connect Odysee stream-chatrooms

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published