Skip to content

Commit

Permalink
zinciteconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadiducho committed Oct 18, 2024
1 parent f13714a commit 03eb06f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/com/cadiducho/bot/CadiBotServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.cadiducho.bot.modules.purabulla.PuraBullaModule;
import com.cadiducho.bot.modules.treintaytres.TreintaYTres;
import com.cadiducho.zincite.ZinciteBot;
import com.cadiducho.zincite.ZinciteConfig;
import com.cadiducho.zincite.modules.json.JsonModule;
import lombok.Getter;
import lombok.extern.java.Log;
Expand Down Expand Up @@ -100,7 +101,12 @@ private void initCadibot(CommandLine cmd) {
System.err.println(ex.getMessage());
}

this.cadibot = new ZinciteBot(cmd.getOptionValue("token"), ownerId, VERSION);
ZinciteConfig config = ZinciteConfig.builder()
.token(cmd.getOptionValue("token"))
.ownerId(ownerId)
.version(VERSION)
.build();
this.cadibot = new ZinciteBot(config);

cadibot.getModuleManager().registerModule(new CoreModule());
cadibot.getModuleManager().registerModule(new JsonModule());
Expand Down

0 comments on commit 03eb06f

Please sign in to comment.