Skip to content

Commit 03eb06f

Browse files
committed
zinciteconfig
1 parent f13714a commit 03eb06f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/com/cadiducho/bot/CadiBotServer.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.cadiducho.bot.modules.purabulla.PuraBullaModule;
1010
import com.cadiducho.bot.modules.treintaytres.TreintaYTres;
1111
import com.cadiducho.zincite.ZinciteBot;
12+
import com.cadiducho.zincite.ZinciteConfig;
1213
import com.cadiducho.zincite.modules.json.JsonModule;
1314
import lombok.Getter;
1415
import lombok.extern.java.Log;
@@ -100,7 +101,12 @@ private void initCadibot(CommandLine cmd) {
100101
System.err.println(ex.getMessage());
101102
}
102103

103-
this.cadibot = new ZinciteBot(cmd.getOptionValue("token"), ownerId, VERSION);
104+
ZinciteConfig config = ZinciteConfig.builder()
105+
.token(cmd.getOptionValue("token"))
106+
.ownerId(ownerId)
107+
.version(VERSION)
108+
.build();
109+
this.cadibot = new ZinciteBot(config);
104110

105111
cadibot.getModuleManager().registerModule(new CoreModule());
106112
cadibot.getModuleManager().registerModule(new JsonModule());

0 commit comments

Comments
 (0)