Skip to content

Commit

Permalink
Update config
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Dec 23, 2021
1 parent e216d1b commit 6179a2a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
29 changes: 15 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,25 @@ Latest version: ![GitHub release (latest SemVer including pre-releases)](https:/

Add the following to your lavalink configuration, make sure to replace `VERSION` with the latest version listed above
```yml
plugins:
- dependency: "com.dunctebot:lavalink:VERSION"
repository: "https://jitpack.io"
lavalink:
plugins:
- dependency: "com.dunctebot:lavalink:VERSION"
repository: "https://jitpack.io"
```
# Configuration
The plugin exposes these configuration options
<br><b>NOTE:</b> this plugins block is a root level object, don't place it where you import the plugin
```yml
lavalink:
plugins:
plugins:
dunctebot:
ttsLanguage: "en-AU" # language of the TTS engine
sources:
# true = source enabled, false = source disabled
getyarn: true # www.getyarn.io
clypit: true # www.clyp.it
tts: true # tts:Words to speak
pornhub: true # should be self-explanatory
reddit: true # should be self-explanatory
ocremix: true # www.ocremix.org
ttsLanguage: "en-AU" # language of the TTS engine
sources:
# true = source enabled, false = source disabled
getyarn: true # www.getyarn.io
clypit: true # www.clyp.it
tts: true # tts:Words to speak
pornhub: true # should be self-explanatory
reddit: true # should be self-explanatory
ocremix: true # www.ocremix.org
```
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ application {
mainClass.set("org.springframework.boot.loader.JarLauncher")
}

val pluginVersion = Version(1, 0, 1)
val pluginVersion = Version(1, 1, 0)

group = "com.dunctebot"
version = "$pluginVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "lavalink.plugins.dunctebot")
@ConfigurationProperties(prefix = "plugins.dunctebot")
public class DuncteBotConfig {
private String ttsLanguage = "en-AU";

Expand All @@ -17,7 +17,7 @@ public void setTtsLanguage(String ttsLanguage) {
}

@Component
@ConfigurationProperties(prefix = "lavalink.plugins.dunctebot.sources")
@ConfigurationProperties(prefix = "plugins.dunctebot.sources")
public static class Sources {
private boolean getyarn = true;
private boolean clypit = true;
Expand Down

0 comments on commit 6179a2a

Please sign in to comment.