File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,6 @@ All of the configuration is done using environment variables.
20
20
### Optional
21
21
22
22
- ` GUILD_ID ` - The ID of the guild you want the bot to sync commands to. (Likely only required if you are developing the bot)
23
+ - ` LAVALINK_NODE_ADDRESS ` - The address of the Lavalink server to connect to. (Defaults to ` localhost:2333 ` )
24
+ - ` LAVALINK_NODE_PASSWORD ` - The password for the Lavalink server. (Defaults to ` youshallnotpass ` )
25
+ - ` LAVALINK_NODE_NAME ` - The name of the Lavalink node. (Defaults to ` default ` )
Original file line number Diff line number Diff line change @@ -3,10 +3,13 @@ services:
3
3
image : ghcr.io/shitcorp/apollo
4
4
environment :
5
5
DISCORD_TOKEN : " your token here"
6
+ LAVALINK_NODE_ADDRESS : " lavalink:2333"
7
+ LAVALINK_NODE_PASSWORD : " youshallnotpass"
8
+ depends_on :
9
+ - lavalink
6
10
7
11
lavalink :
8
12
image : ghcr.io/lavalink-devs/lavalink:4
9
- container_name : lavalink
10
13
environment :
11
14
_JAVA_OPTIONS : " -Xmx500M"
12
15
SERVER_PORT : " 2333"
Original file line number Diff line number Diff line change @@ -183,9 +183,9 @@ func (b *MusicBot) Start(ctx context.Context) error {
183
183
// defer b.Client.Close(ctx)
184
184
185
185
node , err := b .Lavalink .AddNode (ctx , disgolink.NodeConfig {
186
- Name : "test" ,
187
- Address : "localhost:2333" ,
188
- Password : "youshallnotpass" ,
186
+ Name : k . String ( "lavalink.node.name" ) ,
187
+ Address : k . String ( "lavalink.node.address" ) ,
188
+ Password : k . String ( "lavalink.node.password" ) ,
189
189
Secure : false ,
190
190
})
191
191
if err != nil {
You can’t perform that action at this time.
0 commit comments