File tree 1 file changed +7
-1
lines changed
src/main/java/com/cadiducho/bot
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 9
9
import com .cadiducho .bot .modules .purabulla .PuraBullaModule ;
10
10
import com .cadiducho .bot .modules .treintaytres .TreintaYTres ;
11
11
import com .cadiducho .zincite .ZinciteBot ;
12
+ import com .cadiducho .zincite .ZinciteConfig ;
12
13
import com .cadiducho .zincite .modules .json .JsonModule ;
13
14
import lombok .Getter ;
14
15
import lombok .extern .java .Log ;
@@ -100,7 +101,12 @@ private void initCadibot(CommandLine cmd) {
100
101
System .err .println (ex .getMessage ());
101
102
}
102
103
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 );
104
110
105
111
cadibot .getModuleManager ().registerModule (new CoreModule ());
106
112
cadibot .getModuleManager ().registerModule (new JsonModule ());
You can’t perform that action at this time.
0 commit comments