use of ml.duncte123.skybot.objects.config.DunctebotConfig in project SkyBot by duncte123.
the class LavalinkManager method start.
public void start(DunctebotConfig config, AudioUtils audioUtils) {
this.config = config;
this.audioUtils = audioUtils;
if (!isEnabled()) {
return;
}
final String userId = getIdFromToken(this.config.discord.token);
lavalink = new JdaLavalink(userId, this.config.discord.totalShards, shardId -> SkyBot.getInstance().getShardManager().getShardById(shardId));
loadNodes();
}
use of ml.duncte123.skybot.objects.config.DunctebotConfig in project SkyBot by DuncteBot.
the class LavalinkManager method start.
public void start(DunctebotConfig config, AudioUtils audioUtils) {
this.config = config;
this.audioUtils = audioUtils;
if (!isEnabled()) {
return;
}
final String userId = getIdFromToken(this.config.discord.token);
lavalink = new JdaLavalink(userId, this.config.discord.totalShards, shardId -> SkyBot.getInstance().getShardManager().getShardById(shardId));
loadNodes();
}
Aggregations