You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package meltyway.kr.Bot_MW;
import org.pircbotx.Configuration;
import org.pircbotx.MultiBotManager;
import org.pircbotx.PircBotX;
import org.pircbotx.hooks.ListenerAdapter;
import org.pircbotx.hooks.types.GenericMessageEvent;
public class BotMW extends ListenerAdapter {
@Override
public void onGenericMessage(GenericMessageEvent event) {
Configuration.Builder templateConfig = new Configuration.Builder()
.setName("Bot-MW")
.setRealName("Bot-MW")
.setLogin("Bot-MW")
.addAutoJoinChannel("#webgori")
.setAutoNickChange(true);
MultiBotManager manager = new MultiBotManager();
manager.addBot(templateConfig.buildForServer("irc.luatic.net", 7778));
manager.addBot(templateConfig.buildForServer("irc.mizuumi.net", 6667));
manager.start();
}
}
Exception in thread "main" java.lang.IllegalArgumentException: Multiple entries with same key: a=ChannelModeHandler(mode=a) and a=ChannelModeHandler(mode=a)
at com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:150)
at com.google.common.collect.ImmutableSortedMap.validateEntries(ImmutableSortedMap.java:300)
at com.google.common.collect.ImmutableSortedMap.fromEntries(ImmutableSortedMap.java:286)
at com.google.common.collect.ImmutableSortedMap$Builder.build(ImmutableSortedMap.java:408)
at org.pircbotx.Configuration.<init>(Configuration.java:218)
at org.pircbotx.Configuration$Builder.buildConfiguration(Configuration.java:776)
at org.pircbotx.Configuration$Builder.buildForServer(Configuration.java:800)
at meltyway.kr.Bot_MW.BotMW.main(BotMW.java:59)
what happand!
The text was updated successfully, but these errors were encountered:
what happand!
The text was updated successfully, but these errors were encountered: