Play youtube videos from the chat box and/or add custom commands to StumbleChat
The StumbleBot is a UserScript written in JavaScript designed to enhance the user experience on StumbleChat, a web-based chat platform. It adds additional functionality for handling specific chat messages, enabling media playback, and providing custom commands within the chat room.
The script modifies the behavior of WebSocket communication to intercept and manipulate messages. It establishes a WebSocket connection with the chat server and overrides the send
method to intercept outgoing messages, allowing for dynamic responses and actions based on user input.
.yt
command.Here are some of the key commands supported by StumbleBot:
.yt [query]
: Play a YouTube video. Example: .yt https://www.youtube.com/watch?v=dQw4w9WgXcQ
.me [message]
: Send a message as yourself. Example: .me is dancing!
.commands
: List all available commands.ping
: Responds with PONG
.The script is available on GreasyFork:
Install StumbleBot