Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
26021a3
Merge pull request #22 from Gokias/codex/fix-http-error-403-for-playl…
Gokias Feb 13, 2026
7f76eea
Add voice transcription session commands
Gokias Feb 18, 2026
d42993b
Merge pull request #23 from Gokias/codex/add-voice-transcription-feature
Gokias Feb 18, 2026
38b40e8
Swap to Pycord slash API and document voice sink dependency
Gokias Feb 19, 2026
9342c15
Merge pull request #24 from Gokias/codex/migrate-discord-dependency-t…
Gokias Feb 19, 2026
1863d35
added req
Gokias Feb 19, 2026
5aa009d
Fix gtranscribe timeout and voice-start failure handling
Gokias Feb 19, 2026
1db14e4
Merge branch 'main' into codex/migrate-discord-dependency-to-pycord-u…
Gokias Feb 19, 2026
0eee3a5
Merge pull request #25 from Gokias/codex/migrate-discord-dependency-t…
Gokias Feb 19, 2026
91e264d
Removed thinking from await interaction.response.defer
Gokias Feb 19, 2026
9e57fe8
Merge branch 'main' of https://github.com/Gokias/GokiBot
Gokias Feb 19, 2026
d5ccfac
await removed thinking
Gokias Feb 19, 2026
c15d28a
forceload opus
Gokias Feb 19, 2026
929625c
Improve voice recording dependency checks and Opus loading
Gokias Feb 19, 2026
fb25c9d
Merge pull request #26 from Gokias/codex/fix-recording-error-in-poopbot
Gokias Feb 19, 2026
386a2fb
Harden gtranscribe against voice websocket race
Gokias Feb 19, 2026
a4ac1be
Merge pull request #27 from Gokias/codex/fix-recording-exception-in-p…
Gokias Feb 19, 2026
f863737
Increase voice readiness timeout for transcription
Gokias Feb 19, 2026
f60db8b
Merge pull request #28 from Gokias/codex/fix-discord-voice-readiness-…
Gokias Feb 19, 2026
48b5be2
120
Gokias Feb 19, 2026
d379595
Improve voice readiness checks for transcription startup
Gokias Feb 19, 2026
6cf359f
Merge pull request #29 from Gokias/codex/investigate-transcription-ti…
Gokias Feb 19, 2026
b60744b
Harden voice readiness check against sentinel ws values
Gokias Feb 19, 2026
1bc40cb
Merge branch 'main' into codex/investigate-transcription-timeout-issu…
Gokias Feb 19, 2026
c0cf656
Merge pull request #30 from Gokias/codex/investigate-transcription-ti…
Gokias Feb 19, 2026
8aeb4bd
Harden voice websocket readiness checks
Gokias Feb 19, 2026
db75af7
Merge pull request #31 from Gokias/codex/fix-poopbot-voice-client-error
Gokias Feb 19, 2026
ff95943
Add yt-dlp and faster-whisper deployment/transcription guidance
Gokias Feb 19, 2026
681e4e2
Merge pull request #32 from Gokias/codex/update-requirements-and-depl…
Gokias Feb 19, 2026
0b5a5e2
Harden voice client readiness checks for gtranscribe
Gokias Feb 19, 2026
cdd522f
Merge pull request #33 from Gokias/codex/update-voice-client-readines…
Gokias Feb 19, 2026
66a0685
Replace poopbot prints with structured logging
Gokias Feb 19, 2026
0595631
Merge pull request #34 from Gokias/codex/replace-print-statements-wit…
Gokias Feb 19, 2026
e3e5203
reqs
Gokias Feb 19, 2026
3db6a08
sssMerge branch 'main' of https://github.com/Gokias/GokiBot
Gokias Feb 19, 2026
d3e6b09
reqs
Gokias Feb 19, 2026
6c59bc1
updates reqs
Gokias Feb 19, 2026
7cdf616
reqs again
Gokias Feb 19, 2026
2893f09
Add live consent-gated transcription thread workflow
Gokias Feb 19, 2026
5228372
Merge pull request #35 from Gokias/codex/add-live-threaded-transcript…
Gokias Feb 19, 2026
04b5988
docs: document required Discord permissions and intent
Gokias Feb 19, 2026
2eb2b7d
Merge pull request #36 from Gokias/codex/update-deployment.md-with-re…
Gokias Feb 19, 2026
3bb0102
Simplify transcription consent DM wording
Gokias Feb 19, 2026
5b6776d
Merge pull request #37 from Gokias/codex/update-thread-messaging-and-…
Gokias Feb 20, 2026
1527fd1
Fix transcription slice callback coroutine handling
Gokias Feb 20, 2026
4511847
Merge pull request #38 from Gokias/codex/fix-transcription-coroutine-…
Gokias Feb 20, 2026
9b1d4c2
reworded some consent stuff
Gokias Feb 20, 2026
20c918b
Improve transcription consent flow for all voice participants
Gokias Feb 20, 2026
5c8a1b2
Merge pull request #39 from Gokias/codex/fix-transcription-and-user-d…
Gokias Feb 20, 2026
d70abff
Fix transcription member sync visibility and add diagnostics
Gokias Feb 20, 2026
622130a
Merge pull request #40 from Gokias/codex/troubleshoot-transcription-i…
Gokias Feb 20, 2026
d7d54da
Add detailed transcription lifecycle logging
Gokias Feb 20, 2026
467f856
Merge pull request #41 from Gokias/codex/add-logging-for-crash-diagnosis
Gokias Feb 20, 2026
27b8eb0
Recover recording state after transcription slice timeout
Gokias Feb 20, 2026
a13d16d
Merge pull request #42 from Gokias/codex/update-transcription-loop-ti…
Gokias Feb 20, 2026
1757957
Add teardown fallback for repeated transcription failures
Gokias Feb 20, 2026
798cbd2
Merge pull request #43 from Gokias/codex/add-fallback-for-session-tim…
Gokias Feb 20, 2026
b96c9e0
Avoid repeated transcription consent prompts per user
Gokias Feb 20, 2026
bca93dc
Merge pull request #44 from Gokias/codex/modify-user-consent-prompt-b…
Gokias Feb 20, 2026
7bb8585
Scope transcription consent prompts to active session
Gokias Feb 20, 2026
fb56872
Merge pull request #45 from Gokias/codex/update-consent-prompt-tracki…
Gokias Feb 20, 2026
5c0883f
Refactor transcription session to reuse whisper engine
Gokias Feb 20, 2026
ce0db3a
Merge pull request #46 from Gokias/codex/refactor-engine-lifecycle-in…
Gokias Feb 20, 2026
7f4e829
Rework transcription to durable capture with deferred finalization
Gokias Feb 20, 2026
fac1566
Merge pull request #47 from Gokias/codex/refactor-transcription-flow-…
Gokias Feb 20, 2026
747c976
Make transcription consent session-scoped
Gokias Feb 24, 2026
e5d3751
Merge pull request #48 from Gokias/codex/fix-voice-transcription-issue
Gokias Feb 24, 2026
cb943a3
Fix transcription consent prompting and thread reaction handling
Gokias Feb 24, 2026
1c36a01
Merge pull request #49 from Gokias/codex/add-reactions-to-consent-prompt
Gokias Feb 24, 2026
da72bc7
Improve gtranscribe consent UX and add status debug command
Gokias Feb 24, 2026
15a2e41
Merge pull request #50 from Gokias/codex/update-/gtranscribe-consent-ux
Gokias Feb 24, 2026
7b7edf5
Add consent reaction flow logging for transcription
Gokias Feb 24, 2026
f42e1bb
Merge pull request #51 from Gokias/codex/add-logging-for-reaction-eve…
Gokias Feb 24, 2026
17ea647
Add consent-aware capture flush logging
Gokias Feb 24, 2026
162dae9
Merge pull request #52 from Gokias/codex/update-flush_active_recordin…
Gokias Feb 24, 2026
ac7009b
Fix chunk start offsets to use audio timeline
Gokias Feb 24, 2026
8dc9d66
Merge pull request #53 from Gokias/codex/update-chunk_start-calculati…
Gokias Feb 24, 2026
a6d60d5
Improve transcription consent visibility and reminders
Gokias Feb 24, 2026
1ca3ff6
Merge pull request #54 from Gokias/codex/enhance-/gtranscribe_status-…
Gokias Feb 24, 2026
9767ccb
Add gtranscribe permission prechecks and thread error handling
Gokias Feb 24, 2026
8e278b9
Merge pull request #55 from Gokias/codex/add-permission-checks-in-gtr…
Gokias Feb 24, 2026
331bdd5
Improve transcription with rolling windows and overlap
Gokias Feb 24, 2026
ce6ebff
Merge pull request #56 from Gokias/codex/replace-large-slice-behavior…
Gokias Feb 24, 2026
8188276
Improve live transcription chunk diagnostics and key handling
Gokias Feb 24, 2026
9b5784e
Merge pull request #57 from Gokias/codex/debug-audio-chunk-extraction…
Gokias Feb 24, 2026
0f8f14d
Handle raw PCM sink payloads in transcription chunks
Gokias Feb 24, 2026
b17e007
Merge pull request #58 from Gokias/codex/fix-file-format-error-in-tra…
Gokias Feb 24, 2026
f9d6e9a
Remove transcript debug suffix and handle expired gendsession interac…
Gokias Feb 24, 2026
4d6e6f7
Merge pull request #59 from Gokias/codex/remove-debug-text-from-trans…
Gokias Feb 24, 2026
7b81f26
Refine transcription consent flow to DM opt-in only
Gokias Feb 24, 2026
10abeaa
Merge pull request #60 from Gokias/codex/remove-consent-debug-message…
Gokias Feb 24, 2026
1f44af7
Improve transcription accuracy with English bias and fallback
Gokias Feb 24, 2026
b37e68b
Merge pull request #61 from Gokias/codex/enhance-audio-transcription-…
Gokias Feb 24, 2026
ea7a2f8
Order live transcription posts by timestamp
Gokias Feb 26, 2026
a316c78
Merge pull request #62 from Gokias/codex/update-live-posting-path-in-…
Gokias Feb 26, 2026
19f30be
Refactor transcription inference into worker threads
Gokias Feb 26, 2026
0075e5b
Merge pull request #63 from Gokias/codex/refactor-transcription-execu…
Gokias Feb 26, 2026
79ed95f
Add recording health monitoring and teardown safeguards
Gokias Feb 26, 2026
1a2567f
Merge pull request #64 from Gokias/codex/implement-recording-health-m…
Gokias Feb 26, 2026
4873c99
Handle gplay voice reconnect/readiness before playback
Gokias Mar 4, 2026
fbeb23b
Merge pull request #65 from Gokias/codex/fix-voice-connection-error-i…
Gokias Mar 4, 2026
02ef642
Pin voice dependencies and log runtime voice stack
Gokias Mar 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions DEPLOYMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# GokiBot deployment notes

## Python dependencies
Install dependencies from `requirements.txt`:

```bash
python -m pip install -r requirements.txt
```

This bot is pinned to **Pycord** so Discord voice recording sinks are available:

- `py-cord==2.6.1` (provides `discord.sinks`)

Additional runtime dependencies used by this bot:

- `PyNaCl==1.6.1` (voice transport encryption support)
- `python-dotenv==1.2.1` (loads `.env` values)

## Required for music
Music playback and URL resolution commands depend on `yt-dlp` (installed from `requirements.txt`) and system `ffmpeg`.

## Required for transcription export
Transcript export uses a local Whisper backend. This project installs `faster-whisper` from `requirements.txt` (recommended backend).

## Raspberry Pi / Linux system packages
Voice/music features require FFmpeg and Opus on the host:

```bash
sudo apt update
sudo apt install -y ffmpeg libopus0
```

## Environment variables
At minimum, configure:

- `DISCORD_TOKEN`

Optional feature variables used by ticketing and alerts:

- `TICKET_DEV_USER_ID`
- `TICKET_ARCHIVE_CHANNEL_ID`
- `WESROTH_CHANNEL_ID`

## Discord bot permissions (for all current features)
When inviting the bot, grant the following **OAuth2 bot permissions** so every command works as implemented today:

- `View Channels`
- `Read Message History`
- `Send Messages`
- `Send Messages in Threads`
- `Create Private Threads`
- `Manage Threads`
- `Add Reactions`
- `Manage Messages`
- `Connect`
- `Speak`

### Why these are needed
- Poop logging + consent flows use reactions, reaction removal, and message cleanup.
- Ticketing + transcription create private threads, add collaborators, and post in thread channels.
- Ticket archive export reads prior thread history.
- Music playback and live transcription require voice connection and speaking permissions.

## Discord privileged intent configuration
Enable **Message Content Intent** in the Discord Developer Portal for this bot. The runtime explicitly sets `intents.message_content = True`.

## Maintenance note
If new bot features require additional Discord permissions or intents, update this document at the same time as the feature change.
Loading