Owot-js

From Our World of Text Wiki
Jump to navigation Jump to search

The owot-js library is a comprehensive JavaScript client for interacting with Our World of Text (OWOT or OWoT) made by scar17off. It provides functionalities for tile management, chat, world editing, and more, making it a versatile tool for developers looking to create bots or automate tasks within OWOT worlds.

Features

  • WebSocket Communication: Handles WebSocket connections to OWOT, enabling real-time interactions.
  • Chat: Send and receive chat messages within a world.
  • Tile Management: Read and write characters or strings to tiles, including color support.
  • World Editing: Move the cursor, protect tiles, and create links within the world.
  • Event Handling: Listen to various events such as open, close, chat, tileUpdate, fetch, and join.

Extending Functionality

`owot-js` is designed to be extensible. You can create custom functionalities on top of the provided methods, such as automated world maintenance, chat moderation bots, or creative art scripts.

For more detailed documentation and examples, visit the GitHub repository.

Projects and scripts built using owot-js

Gay Stickman

Game of Life (Originally created by ChromicQuanta, but soon rewritten in owot-js by scar17off.)

Marquee display

stats-collector

Prophetbot