Skip to content

Better error managment and implemented kokoro tts#101

Merged
Wikijito7 merged 5 commits intomasterfrom
feature/95-make-a-better-error-managment
Feb 7, 2026
Merged

Better error managment and implemented kokoro tts#101
Wikijito7 merged 5 commits intomasterfrom
feature/95-make-a-better-error-managment

Conversation

@Wikijito7
Copy link
Owner

Solves #95.

📋 Changelist Summary

Better error managment and implemented kokoro tts

💬 Description

Implemented better error managment for Command and Lavaplayer/API usages. Now, we will throw the exception and it will be catched at the new ErrorHandlerService.

Also, implemented kokoro and changed tts command to use it instead of FloweryTTS, which has been removed from the bot.

@Wikijito7 Wikijito7 requested a review from javdc February 6, 2026 19:48
@Wikijito7 Wikijito7 self-assigned this Feb 6, 2026
@Wikijito7 Wikijito7 linked an issue Feb 6, 2026 that may be closed by this pull request
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

ktlint

🚫 [ktlint] standard:comment-wrapping reported by reviewdog 🐶
A block comment may not be followed by any other element on that same line


🚫 [ktlint] standard:comment-wrapping reported by reviewdog 🐶
A block comment may not be followed by any other element on that same line


🚫 [ktlint] standard:comment-wrapping reported by reviewdog 🐶
A block comment may not be followed by any other element on that same line


🚫 [ktlint] standard:comment-wrapping reported by reviewdog 🐶
A block comment may not be followed by any other element on that same line


🚫 [ktlint] standard:final-newline reported by reviewdog 🐶
File must end with a newline (\n)


🚫 [ktlint] standard:function-expression-body reported by reviewdog 🐶
Function body should be replaced with body expression


🚫 [ktlint] standard:indent reported by reviewdog 🐶
Unexpected indentation (20) (should be 16)

"Current position: $internalPosition, requested: $position"


🚫 [ktlint] standard:function-expression-body reported by reviewdog 🐶
Function body should be replaced with body expression

override fun getTrackInfoProviders(): List<AudioTrackInfoProvider?> {

@Wikijito7 Wikijito7 force-pushed the feature/95-make-a-better-error-managment branch from 1076f7b to 847896d Compare February 7, 2026 12:38
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 7, 2026

@Wikijito7 Wikijito7 merged commit a74f8f0 into master Feb 7, 2026
4 checks passed
@Wikijito7 Wikijito7 deleted the feature/95-make-a-better-error-managment branch February 7, 2026 13:18
"country_code": "ES",
"token": ""
},
"kokoro": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd add an option to enable or disable this, as not all people will have an instance of Kokoro running when using the bot

Comment on lines +41 to +43
"default_voice": "",
"default_speed": 1.0,
"default_lang_code": ""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a template, so add good defaults:

Suggested change
"default_voice": "",
"default_speed": 1.0,
"default_lang_code": ""
"default_voice": "am_santa",
"default_speed": 1.0,
"default_lang_code": "en"

"remote_cipher_url": null,
"remote_cipher_password": null
},
"hugging_chat": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you are at it, also remove these unused config parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make a better error managment

2 participants