StumbleBot

Play YouTube videos from the chat box and/or add custom commands to StumbleChat

当前为 2025-10-18 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Goji
评分
0 0 0
版本
1.1.2
创建于
2025-02-09
更新于
2025-10-18
大小
17.4 KB
许可证
暂无
适用于

🧩 StumbleBot (Queued Edition)

StumbleBot is a user script written in JavaScript that enhances the StumbleChat experience by adding modular commands, media playback, and smart message handling — all while maintaining chat stability with a built-in global message queue.


✨ Overview

StumbleBot extends the standard StumbleChat client by:

  • Intercepting and augmenting WebSocket traffic.
  • Automatically queueing bot messages (1-second delay) to avoid spam or rate-limits.
  • Tracking users, nicknames, and roles across sessions.
  • Supporting operator-only commands for moderation and media control.
  • Providing utility commands for identity lookup, YouTube playback, and fun interactions.

⚙️ Key Features

  • 🧠 Global Message Queue
    Ensures messages are sent at a controlled 1-second interval using a global send queue.

  • 🎥 YouTube Playback
    Operators can play YouTube videos using .yt, .play, .video, or .youtube.

  • 🧾 Persistent User Tracking
    Saves usernames, handles, nicknames, and roles (Operator, Moderator, Owner, etc.) locally.

  • 🔎 Identity Commands

    • .self — Displays your username, nickname, handle, and current role.
    • .whois <user|nick|handle> — Looks up another user's stored info.
  • 📜 YouTube History
    View recently added tracks using .history [page].

  • 💬 Custom & Utility Commands

    • .me [message] — Sends a message as your nickname.
    • .commands or .help — Lists all available commands.
    • ping — Responds with PONG.
    • Hourly demo alert at HH:20 (e.g. 4:20 🌿).

🧩 Command List

Command Description
.yt [query] Play a YouTube video (Operator+).
.play [query] Alias of .yt.
.video [query] Alias of .yt.
.youtube [query] Alias of .yt.
.history [page] View YouTube playback history (paginated).
.self Display your user info and role.
`.whois <user nick
.me [message] Send a message as yourself.
.commands / .help Show all available commands.
ping Responds with PONG.

🧰 Technical Notes

  • Backward Compatible: Existing commands using this._send(...) continue to work automatically.
  • Storage: User data (handles, nicknames, roles, and YouTube history) is persisted in localStorage.
  • Queue System: Uses a 1000 ms global cooldown between sends to prevent message flooding.
  • Safe JSON Parsing: All server messages are parsed safely to avoid breaking on malformed input.

🚀 Installation

Install directly from GreasyFork:
👉 Install StumbleBot

After installation, StumbleBot will automatically activate when visiting a chatroom.


🧑‍💻 Author

Developed by Goji