diff options
author | Marko Zajc <marko@zajc.eu.org> | 2023-07-30 12:53:17 +0200 |
---|---|---|
committer | Marko Zajc <marko@zajc.eu.org> | 2023-08-02 00:59:00 +0200 |
commit | 7563abef81cb4daf142237c93cb0f32dc554eec2 (patch) | |
tree | dff97116611d612ed700a18fe3c53215aaab93d4 | |
parent | 344b1d87ce4616ee39185f5ce2868ed1ad48daab (diff) |
[core] Use JDA-NAS
-rw-r--r-- | core/pom.xml | 24 | ||||
-rw-r--r-- | core/src/main/java/libot/Main.java | 5 |
2 files changed, 28 insertions, 1 deletions
diff --git a/core/pom.xml b/core/pom.xml index 780eb92..e9e5791 100644 --- a/core/pom.xml +++ b/core/pom.xml | |||
@@ -110,6 +110,25 @@ | |||
110 | <artifactId>eclipse-collections</artifactId> | 110 | <artifactId>eclipse-collections</artifactId> |
111 | <version>11.1.0</version> | 111 | <version>11.1.0</version> |
112 | </dependency> | 112 | </dependency> |
113 | |||
114 | <!-- Native queue --> | ||
115 | <dependency> | ||
116 | <groupId>com.sedmelluq</groupId> | ||
117 | <artifactId>jda-nas</artifactId> | ||
118 | <version>1.1.0</version> | ||
119 | <exclusions> | ||
120 | <exclusion> | ||
121 | <groupId>com.sedmelluq</groupId> | ||
122 | <artifactId>udp-queue</artifactId> | ||
123 | </exclusion> | ||
124 | </exclusions> | ||
125 | </dependency> | ||
126 | |||
127 | <dependency> | ||
128 | <groupId>club.minnced</groupId> | ||
129 | <artifactId>udpqueue-native-linux-x86-64</artifactId> | ||
130 | <version>0.2.7</version> | ||
131 | </dependency> | ||
113 | 132 | ||
114 | <!-- JSON support --> | 133 | <!-- JSON support --> |
115 | <dependency> | 134 | <dependency> |
@@ -147,6 +166,11 @@ | |||
147 | <id>m2-dv8tion</id> | 166 | <id>m2-dv8tion</id> |
148 | <url>https://m2.dv8tion.net/releases</url> | 167 | <url>https://m2.dv8tion.net/releases</url> |
149 | </repository> | 168 | </repository> |
169 | |||
170 | <repository> | ||
171 | <id>jcenter</id> | ||
172 | <url>https://jcenter.bintray.com</url> | ||
173 | </repository> | ||
150 | </repositories> | 174 | </repositories> |
151 | 175 | ||
152 | <build> | 176 | <build> |
diff --git a/core/src/main/java/libot/Main.java b/core/src/main/java/libot/Main.java index 6065956..aaf1c73 100644 --- a/core/src/main/java/libot/Main.java +++ b/core/src/main/java/libot/Main.java | |||
@@ -22,6 +22,8 @@ import javax.security.auth.login.LoginException; | |||
22 | 22 | ||
23 | import org.slf4j.Logger; | 23 | import org.slf4j.Logger; |
24 | 24 | ||
25 | import com.sedmelluq.discord.lavaplayer.jdaudp.NativeAudioSendFactory; | ||
26 | |||
25 | import libot.core.BotConfiguration; | 27 | import libot.core.BotConfiguration; |
26 | import libot.core.commands.CommandManager; | 28 | import libot.core.commands.CommandManager; |
27 | import libot.core.data.DataManagerFactory; | 29 | import libot.core.data.DataManagerFactory; |
@@ -63,7 +65,8 @@ public class Main { | |||
63 | .disableCache(ACTIVITY, CLIENT_STATUS, ONLINE_STATUS) | 65 | .disableCache(ACTIVITY, CLIENT_STATUS, ONLINE_STATUS) |
64 | .setChunkingFilter(ChunkingFilter.ALL) | 66 | .setChunkingFilter(ChunkingFilter.ALL) |
65 | .addEventListeners(ewl) | 67 | .addEventListeners(ewl) |
66 | .setStatus(IDLE); | 68 | .setStatus(IDLE) |
69 | .setAudioSendFactory(new NativeAudioSendFactory()); | ||
67 | 70 | ||
68 | var shreds = startShreds(builder); | 71 | var shreds = startShreds(builder); |
69 | if (shreds.isEmpty()) | 72 | if (shreds.isEmpty()) |