From 26a0728e14be18582a3bc47fd94df4ab1857a479 Mon Sep 17 00:00:00 2001 From: kingston Date: Tue, 3 Nov 2026 12:54:42 -0600 Subject: [PATCH] docs: move cog documentation into the wiki and stub the README The root README carried the full ten cog manual while the wiki held the authoritative pages. Point the repository at the wiki, keep only install and catalog basics in the README, and remove the per cog documents that are now folded into wiki source under wiki/. --- README.md | 1372 +------------------------- autoroom/README.md | 63 -- renamer/README.md | 11 - ttstoy/README.md | 126 --- ttstoy/dectalk-server/INSTALL.md | 83 -- ttstoy/dectalk-server/INTEGRATION.md | 186 ---- ttstoy/dectalk-server/README.md | 237 ----- ttstoy/dectalk-server/TESTING.md | 158 --- ttstoy/dectalk-server/VOICES.md | 69 -- wiki/AlbumOfTheDay.md | 118 +++ wiki/Assistant.md | 112 +++ wiki/AutoRoom-Commands.md | 134 +++ wiki/AutoRoom-Overview.md | 152 +++ wiki/AutoRoom-Templates.md | 105 ++ wiki/Cog-Catalog.md | 34 + wiki/Data-and-Privacy.md | 52 + wiki/Deadman.md | 93 ++ wiki/Development.md | 94 ++ wiki/Home.md | 34 + wiki/ImageGrab.md | 70 ++ wiki/Installation.md | 78 ++ wiki/Local-Services.md | 92 ++ wiki/PlayitStatus.md | 77 ++ wiki/Renamer.md | 64 ++ wiki/Transcribe.md | 154 +++ wiki/Troubleshooting.md | 103 ++ wiki/TtsToy-Accessibility.md | 102 ++ wiki/TtsToy-Commands.md | 142 +++ wiki/TtsToy-Overview.md | 146 +++ wiki/TtsToy-Servers.md | 166 ++++ wiki/YTAudio.md | 120 +++ wiki/_Sidebar.md | 27 + 32 files changed, 2293 insertions(+), 2281 deletions(-) delete mode 100644 autoroom/README.md delete mode 100644 renamer/README.md delete mode 100644 ttstoy/README.md delete mode 100644 ttstoy/dectalk-server/INSTALL.md delete mode 100644 ttstoy/dectalk-server/INTEGRATION.md delete mode 100644 ttstoy/dectalk-server/README.md delete mode 100644 ttstoy/dectalk-server/TESTING.md delete mode 100644 ttstoy/dectalk-server/VOICES.md create mode 100644 wiki/AlbumOfTheDay.md create mode 100644 wiki/Assistant.md create mode 100644 wiki/AutoRoom-Commands.md create mode 100644 wiki/AutoRoom-Overview.md create mode 100644 wiki/AutoRoom-Templates.md create mode 100644 wiki/Cog-Catalog.md create mode 100644 wiki/Data-and-Privacy.md create mode 100644 wiki/Deadman.md create mode 100644 wiki/Development.md create mode 100644 wiki/Home.md create mode 100644 wiki/ImageGrab.md create mode 100644 wiki/Installation.md create mode 100644 wiki/Local-Services.md create mode 100644 wiki/PlayitStatus.md create mode 100644 wiki/Renamer.md create mode 100644 wiki/Transcribe.md create mode 100644 wiki/Troubleshooting.md create mode 100644 wiki/TtsToy-Accessibility.md create mode 100644 wiki/TtsToy-Commands.md create mode 100644 wiki/TtsToy-Overview.md create mode 100644 wiki/TtsToy-Servers.md create mode 100644 wiki/YTAudio.md create mode 100644 wiki/_Sidebar.md diff --git a/README.md b/README.md index f0eae4b..3d75632 100644 --- a/README.md +++ b/README.md @@ -1,1364 +1,40 @@ # Scrapyard Cogworks -**A collection of custom Red-DiscordBot cogs by Scrapyard Cogworks** +Custom cogs for Red-DiscordBot: temporary voice channels, speech to text, multi-engine text to speech, YouTube playback, album posting, a chat assistant, and small administrative tools. -Homepage: https://homepage.kingstons-scrapyard.net/ +Full documentation lives in the repository wiki: ---- +http://192.168.0.200:3000/kingston/scrapyard-cogworks/wiki -## Table of Contents - -**Deadman** -- [Deadman](#deadman) - -**AlbumOfTheDay** -- [AlbumOfTheDay](#albumoftheday) - -**AutoRoom** -- [Installation](#installation) -- [AutoRoom](#autoroom) -- [AutoRoom User Commands](#user-commands) -- [AutoRoom Admin Commands](#admin-commands) -- [How It Works](#how-it-works) -- [Permissions Required](#permissions-required) -- [Scrapyard Cogworks Modifications](#scrapyard-cogworks-modifications) - -**Assistant** -- [Assistant](#assistant) -- [Assistant Installation](#assistant-installation) -- [Assistant User Commands](#assistant-user-commands) -- [Assistant Admin/Owner Commands](#assistant-adminowner-commands) -- [Assistant Behavior](#assistant-behavior) - -**TtsToy** -- [TtsToy](#ttstoy) -- [TtsToy User Commands](#user-commands-1) -- [Chatterbox Commands](#chatterbox-commands) -- [Owner/Admin Commands](#owneradmin-commands) -- [Emoji Sound Effects](#emoji-sound-effects) -- [Inline Voice Switching](#inline-voice-switching) -- [DECTalk Voice Commands](#dectalk-voice-commands) -- [Chatterbox Special Tokens](#chatterbox-special-tokens) -- [VOX Engine](#vox-engine) -- [MorshuTalk Engine](#morshutalk-engine) -- [TTS Queue System](#tts-queue-system) -- [Web UI](#web-ui) -- [MiniMax Voices (Presets)](#minimax-voices-presets) - -**Transcribe** -- [Transcribe](#transcribe) - ---- - -## Installation +## Install ``` [p]repo add scrapyard http://192.168.0.200:3000/kingston/scrapyard-cogworks.git -[p]cog install scrapyard autoroom -[p]load autoroom +[p]cog install scrapyard +[p]load ``` -Deadman (bot owner only): +## Cogs -``` -[p]cog install scrapyard deadman -[p]load deadman -``` +| Cog | Purpose | +|---|---| +| `albumoftheday` | Posts the 1001 Albums Generator album of the day on a schedule | +| `assistant` | Chat assistant backed by an OpenAI-compatible API | +| `autoroom` | Creates temporary voice channels on demand | +| `deadman` | Alerts nominated users when the owner stops checking in | +| `imagegrab` | Zips every image in a channel | +| `playitstatus` | Checks playit.gg tunnel status on demand | +| `renamer` | Administrator nickname tools | +| `transcribe` | Speech to text and translation for voice messages | +| `ttstoy` | Multi-engine text to speech with voice cloning and accessibility mode | +| `ytaudio` | YouTube playback through Lavalink | ---- +## Requirements -## Deadman +Red-DiscordBot 3.5 or newer, Python 3.11 or newer, and ffmpeg. YTAudio and TtsToy need a Lavalink node on `localhost:2333`. Transcribe needs Whisper on port 8201 and NLLB on port 8200. TtsToy needs its engine services, or a MiniMax API key. -A member of the Scrapyard Cogworks package. A deadman switch that alerts listed users if not disabled before it expires. +Load `ytaudio` before `ttstoy`, because YTAudio owns the shared Lavalink client. -- **Owner only**: Only the bot owner can arm, disable, or check status. -- **Arm**: `[p]deadman arm @user1 @user2 [channel]` -- **Disable**: `[p]deadman disable` -- **Status**: `[p]deadman status` +## Documentation -**Duration format** (flexible string): -- `30s` = 30 seconds -- `6h` = 6 hours -- `2h30m` = 2 hours 30 minutes -- `1d` = 1 day -- `1d12h` = 1 day 12 hours - -Supported units: `s`, `m`, `h`, `d`, `w` (and their full names). - -When the switch is armed, each listed user is DM'd to confirm they were added. If an optional channel is provided, the trigger alert is also posted there. If `[p]deadman disable` is not run before expiry, the listed users are DM'd and pinged that "the deadman switch has been TRIGGERED". - ---- - -## AlbumOfTheDay - -Posts your [1001 Albums Generator](https://1001albumsgenerator.com) group's album of the day to a Discord channel, with group stats, genres, and streaming links. This is the in-bot equivalent of the album-notifier GitHub Actions project: instead of a cron workflow and a webhook, it runs inside the bot, stores config per server, and schedules the daily post itself. - -Install: - -``` -[p]cog install scrapyard albumoftheday -[p]load albumoftheday -``` - -Setup (per server): - -1. Find your group API URL. Take your group page URL `https://1001albumsgenerator.com/groups/your-slug` and insert `/api/v1` before `/groups`: `https://1001albumsgenerator.com/api/v1/groups/your-slug` -2. Configure: - -``` -[p]aotd seturl https://1001albumsgenerator.com/api/v1/groups/your-slug -[p]aotd setchannel #album-of-the-day -[p]aotd settime 8 0 -``` - -3. Test immediately with `[p]aotd now`. - -**Commands:** -- `[p]aotd now` - post today's album in the current channel (anyone). -- `[p]aotd seturl ` - set the group API URL (admin / Manage Server). -- `[p]aotd setchannel [#channel]` - set the daily post channel (defaults to current). -- `[p]aotd settime [minute]` - daily post time, 24-hour, in the server timezone. -- `[p]aotd settz ` - set the timezone (default `America/Chicago`, US Central). -- `[p]aotd settings` - show current config. -- `[p]aotd clear` - clear config and stop daily posting. - -The schedule is timezone-aware and defaults to US Central (CST/CDT). A time you set stays fixed in local terms year-round, with daylight saving handled automatically. The daily post is guarded against double-posting within one local day, even across bot restarts. - ---- - -## AutoRoom - -Automatic voice channel management. When a member joins an AutoRoom Source (voice channel), a brand new AutoRoom is created that they have control over. Once everyone leaves the AutoRoom, it is automatically deleted. - -### Requirements - -- Python 3.11+ -- Red-DiscordBot 3.5.0+ -- Dependencies: `func-timeout`, `jinja2` - ---- - -## User Commands - -All user commands are under the `[p]autoroom` group (alias: `[p]vc`). - ---- - -### `[p]autoroom settings` - -**Aliases:** `about`, `info` - -Display current settings for the AutoRoom you are currently in. Shows: - -- **Owner** - The current owner of the AutoRoom (or "Server Managed" if no owner) -- **Access** - Whether the room is public, locked, or private -- **Member Roles** - Roles that are allowed to access the room (if applicable) -- **Bitrate** - Current bitrate in kbps -- **Channel Age** - How long the AutoRoom has existed -- **Allowed Members** - Members explicitly allowed into the room -- **Allowed Roles** - Roles explicitly allowed into the room -- **Denied Members** - Members explicitly denied from the room -- **Denied Roles** - Roles explicitly denied from the room - -You do not need to be the owner of the AutoRoom to use this command. - ---- - -### `[p]autoroom name ` - -Change the name of your AutoRoom. - -- Maximum channel name length: 100 characters (truncated if longer) -- Rate limited to prevent abuse. If you hit the rate limit, you will be told how long to wait. -- Alternatively, you can rename the channel directly through Discord (right-click on desktop, long-press on mobile). Note: if the server has 2FA enabled, your account needs 2FA to do this. - -**Example:** -``` -[p]autoroom name Chill Zone -``` - ---- - -### `[p]autoroom bitrate ` - -**Aliases:** `kbps` - -Change the bitrate of your AutoRoom. - -- Minimum: 8 kbps -- Maximum: Server's bitrate limit (depends on server boost level) - -**Example:** -``` -[p]autoroom bitrate 96 -``` - ---- - -### `[p]autoroom users ` - -**Aliases:** `userlimit` - -Change the user limit of your AutoRoom. - -- Minimum: 0 (unlimited) -- Maximum: 99 - -**Example:** -``` -[p]autoroom users 5 -``` - ---- - -### `[p]autoroom claim` - -Claim ownership of an AutoRoom. - -- You must be in the AutoRoom to claim it. -- You can only claim an AutoRoom if the current owner has left the channel. -- There is a cooldown after the owner leaves before you can claim, in case they come back. -- Moderators, admins, and the server owner can claim at any time regardless of the above restrictions. -- When you claim, the previous owner loses their owner permissions and you gain them. - ---- - -### `[p]autoroom public` - -Make your AutoRoom public. - -- The room becomes visible and joinable by everyone (or by all member roles if configured). -- All member roles (or @everyone) will be granted connect permissions. - ---- - -### `[p]autoroom locked` - -Lock your AutoRoom. - -- The room remains visible to everyone but no one can join without being explicitly allowed. -- Users already in the room will remain. -- Use `[p]autoroom allow` to let specific users in. - ---- - -### `[p]autoroom private` - -Make your AutoRoom private. - -- The room becomes invisible and unjoinable by other users. -- Users already in the room will remain. -- Use `[p]autoroom allow` to let specific users in. - ---- - -### `[p]autoroom allow ` - -**Aliases:** `add` - -Allow one or more users (or roles) into your AutoRoom. - -**Scrapyard Cogworks Enhancement:** You can specify multiple users/roles separated by spaces to allow them all at once. - -**Accepts:** -- @mentions -- User IDs -- Usernames -- Role mentions -- Role names - -**Restrictions:** -- The user/role must be allowed to connect to the original AutoRoom Source channel. If they can't connect to the source, they can't be allowed into the AutoRoom. -- If the AutoRoom uses member roles, you cannot allow a role that is lower in hierarchy than the lowest member role. -- Bot roles can always be allowed. - -**Examples:** -``` -[p]autoroom allow @User1 -[p]autoroom allow @User1 @User2 @User3 -[p]autoroom allow 123456789012345678 987654321098765432 -[p]autoroom allow @User1 123456789012345678 @SomeRole -``` - ---- - -### `[p]autoroom deny ` - -**Aliases:** `ban`, `block` - -Deny a user (or role) from accessing your AutoRoom. - -- If the user is currently in your AutoRoom, they will be disconnected. -- If a role is denied and any members in the room no longer have connect permission as a result, they will be disconnected. -- If the server uses member roles, denying roles may not work as expected. - -**Cannot deny:** -- The bot itself -- Yourself (the AutoRoom owner) -- The server owner -- Server admins or admin roles -- Server moderators or moderator roles - -**Example:** -``` -[p]autoroom deny @TroubleMaker -[p]autoroom deny 123456789012345678 -``` - ---- - -## Admin Commands - -All admin commands are under the `[p]autoroomset` group. Requires the **Manage Server** permission or an admin role. - ---- - -### `[p]autoroomset settings` - -Display all current AutoRoom settings for the server, including: - -- Admin access to all AutoRooms (on/off) -- Moderator access to all AutoRooms (on/off) -- Bot roles allowed in all AutoRooms -- Per-source settings: room type, destination category, legacy text channel, send messages permission, owner manage channel permission, member roles, room name format, text channel hint, and text channel topic - -Also displays warnings if the bot is missing required or optional permissions. - ---- - -### `[p]autoroomset permissions` - -**Aliases:** `perms` - -Check that the bot has all needed permissions for all configured AutoRoom Sources. - -Displays a detailed breakdown per AutoRoom Source showing: -- Required permissions (the cog won't function without these) -- Optional permissions (extra features that won't work without these) -- Where permissions need to be granted (source channel, destination category, or server-wide) - ---- - -### `[p]autoroomset create ` - -**Aliases:** `enable`, `add` - -Create a new AutoRoom Source through an interactive setup wizard. - -**Parameters:** -- `source_voice_channel` - The voice channel that users will join to trigger AutoRoom creation -- `dest_category` - The category where new AutoRooms will be created - -**The wizard will ask you to configure:** - -1. **Room Type:** - - `public` - Visible and joinable by all. Owner can kick/ban users. - - `locked` - Visible but not joinable. Owner must allow users in. - - `private` - Hidden and not joinable. Owner must allow users in. - - `server` - Public but with no owner. Cannot be modified by users. - -2. **Channel Name Format:** - - `username` - Shows as "Username's Room" - - `game` - Shows the owner's current game, falls back to username format - -**Example:** -``` -[p]autoroomset create #create-a-room "Auto Rooms" -``` - ---- - -### `[p]autoroomset remove ` - -**Aliases:** `disable`, `delete`, `del` - -Remove an AutoRoom Source. The voice channel will remain but will no longer trigger AutoRoom creation. - -**Example:** -``` -[p]autoroomset remove #create-a-room -``` - ---- - -### `[p]autoroomset access` - -Control access to all AutoRooms for admin/moderator roles. - ---- - -### `[p]autoroomset access admin` - -Toggle whether admins can join locked/private AutoRooms. This is a toggle - run again to disable. - ---- - -### `[p]autoroomset access mod` - -Toggle whether moderators can join locked/private AutoRooms. This is a toggle - run again to disable. - ---- - -### `[p]autoroomset access bot add ` - -Allow a bot role to automatically be granted access to every AutoRoom. The AutoRoom Owner can still manually deny these roles if they choose. - -**Example:** -``` -[p]autoroomset access bot add @MusicBot -``` - ---- - -### `[p]autoroomset access bot remove ` - -**Aliases:** `delete`, `del` - -Remove a bot role from being automatically allowed into every AutoRoom. - -**Example:** -``` -[p]autoroomset access bot remove @MusicBot -``` - ---- - -### `[p]autoroomset modify` - -**Aliases:** `edit` - -Group command for modifying an existing AutoRoom Source's settings. - ---- - -### `[p]autoroomset modify category ` - -Change the destination category where AutoRooms will be created for a given source. - -**Example:** -``` -[p]autoroomset modify category #create-a-room "New Category" -``` - ---- - -### `[p]autoroomset modify type public ` - -Set the AutoRoom Source to create public rooms (visible and joinable, owner has control). - ---- - -### `[p]autoroomset modify type locked ` - -Set the AutoRoom Source to create locked rooms (visible but not joinable, owner must allow users). - ---- - -### `[p]autoroomset modify type private ` - -Set the AutoRoom Source to create private rooms (hidden, owner must allow users). - ---- - -### `[p]autoroomset modify type server ` - -Set the AutoRoom Source to create server-managed rooms (public, no owner, cannot be modified). - ---- - -### `[p]autoroomset modify name username ` - -Set the channel name format to the username style. - -**Format:** `{{username}}'s Room{% if dupenum > 1 %} ({{dupenum}}){% endif %}` - -**Example output:** `Kingston's Room`, `Kingston's Room (2)` - ---- - -### `[p]autoroomset modify name game ` - -Set the channel name format to the game style. Shows the owner's currently playing game, or falls back to the username format. - -**Format:** `{{game}}{% if not game %}{{username}}'s Room{% endif %}{% if dupenum > 1 %} ({{dupenum}}){% endif %}` - -**Example output:** `Minecraft`, `Kingston's Room` - ---- - -### `[p]autoroomset modify name custom