aboutsummaryrefslogtreecommitdiffstats
path: root/cogs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Clean up consumers: replace polling with VoiceManager.play_source()salmonik2026-05-205-24/+29
| | | | | | | | | - cron.py: replace while-is_playing polling with VoiceManager.play_source() - vclogs.py: replace while-is_playing polling with VoiceManager.play_source() - stop.py: use VoiceManager.disconnect() instead of raw voice_client - join.py: use VoiceManager.connect() instead of raw channel.connect() - voice.py: add back join_by_channel_id() convenience method - Tests: update for new VoiceManager method names and signatures
* Fix TTS and AI voice playback bugssalmonik2026-05-202-12/+11
| | | | | | | | - tts.py _handle_voice_output: add missing voice_client.play() call via VoiceManager.play_source() — was creating the audio source and then doing nothing - ai.py: use VoiceManager.play_source() instead of passing an FFmpegPCMAudio object to play() which expects a string path
* Fold AudioPlaybackManager into VoiceManager + Future-based playsalmonik2026-05-202-441/+258
| | | | | | | | | | | | - Move all static helpers (validate_voice_channel, prepare_source, prepare_audio_source, etc.) from AudioPlaybackManager into VoiceManager - Add _play_await() using asyncio.Future + after callback, replacing all polling patterns and the 5-second sleep hack - Add play() high-level method and play_source() for pre-made sources - Unify connection logic under single _ensure_voice_client() - Remove dead Voice cog class and its setup() - Gut audio_playback.py to a re-export shim - Remove cogs.voice from main.py extensions
* health checks for vcsalmonik2026-05-203-33/+111
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* proper context for settingssalmonik2026-04-291-15/+13
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* damn short filessalmonik2026-04-291-6/+12
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* Refactor database connections and add integration testssalmonik2026-04-298-40/+84
| | | | | | | | | | - Use context managers for sqlite3 connections in cron, vclogs, and database utils - Add URL helper utility for yt-dlp with clean_url_for_ytdlp function - Add slow integration test markers and new integration test files - Fix test imports to use conftest directly instead of tests.conftest - Improve downloader error handling and use COPYPARTY_URL_UPLOAD env var - Update pytest.ini with slow test markers and warning filters - Document slow test usage in AGENTS.md
* multitude of changes.salmonik2026-04-2813-166/+342
| | | | | | but primarly, use db for all data. Signed-off-by: salmonik <raisersoft@proton.me>
* better UX for web.pysalmonik2026-04-231-17/+5
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* uploader.py and voice fixessalmonik2026-04-204-10/+175
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* lil cron fixsalmonik2026-04-201-1/+1
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* fix filename handling in downloader.pysalmonik2026-04-201-4/+17
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* feat: add external URL playback support, fix vclogs audio handlingsalmonik2026-04-192-6/+116
|
* refactor: simplify cogs, reduce complexitysalmonik2026-04-1915-85/+127
| | | | | | - Remove unused imports and dead code - Cleaner error handling - Reduce cognitive complexity
* discontinue plots; too complex.salmonik2026-04-191-195/+0
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* error handling in plot.pysalmonik2026-04-191-11/+18
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* less info logging in cron.pysalmonik2026-04-191-3/+3
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* add support for x^2+y^2=0,4 and alikesalmonik2026-04-181-0/+61
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* refactor + preparing bot for public usesalmonik2026-04-1820-342/+615
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* add mathematical plottingsalmonik2026-04-171-0/+128
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* fix voice even moresalmonik2026-04-172-7/+10
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* add qr generation and decodingsalmonik2026-04-171-0/+142
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* add cron functionalitysalmonik2026-04-171-0/+377
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* make voice great againsalmonik2026-04-177-181/+273
| | | | Signed-off-by: salmonik <raisersoft@proton.me>
* Merge branch 'main' of https://codeberg.org/salmonik/senator-spermasalmonik2026-04-102-5/+36
|\
| * "fix" voice managementsalmonik2026-04-082-5/+36
| |
* | fix voice for the 9th time today, still on the waysalmonik2026-04-102-2/+3
|/
* make it work + visual changessalmonik2026-03-283-65/+75
|
* trigger changes or smthsalmonik2026-03-271-6/+27
|
* sanitize inputs for mathsalmonik2026-03-231-5/+53
|
* add copyright clausesalmonik2026-03-231-1/+5
|
* play music using the serversalmonik2026-03-232-432/+104
|
* triggerssalmonik2026-03-231-0/+305
|
* unify settings api into one filesalmonik2026-03-233-32/+72
|
* normalised times on vclogs, and improved jarvis via reply chainingsalmonik2026-03-192-105/+73
|
* vclogs afk/active timesalmonik2026-03-191-10/+116
|
* I am perhaps too fast to pushsalmonik2026-03-181-41/+1
|
* Merge branch 'main' of https://codeberg.org/salmonik/senator-spermasalmonik2026-03-181-7/+9
|\
| * minor fixessalmonik2026-03-171-8/+11
| |
* | voice doesn't work due to DAVE, but we got copyparty searchsalmonik2026-03-188-105/+475
|/
* fix ttssalmonik2026-02-271-10/+11
|
* fix settings file nagging again againsalmonik2026-02-202-2/+4
|
* fix settings file nagging againsalmonik2026-02-201-1/+2
|
* fix settings file naggingsalmonik2026-02-201-7/+7
|
* more asynchronous work and other minor improvementssalmonik2026-02-0410-460/+613
|
* refactor musicsalmonik2026-02-045-490/+670
|
* better reply contextsalmonik2026-01-291-13/+32
|
* make yt-dlp use deno correctlysalmonik2026-01-281-2/+1
|
* Merge branch 'main' of https://codeberg.org/salmonik/senator-spermasalmonik2026-01-2816-2/+82
|\
| * add copyright and license noticesalmonik2026-01-2616-2/+82
| |