Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/Lists
at org.pircbotx.Configuration$Builder.<init>(Configuration.java:318)
at Main.main(Main.java:14)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Lists
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 2 more
import org.pircbotx.Configuration;
import org.pircbotx.PircBotX;
import org.pircbotx.cap.EnableCapHandler;
public class Main {
public static final String BOTNAME = "BotName";
public static final String OAUTH = "OAUTH";
public static final String CHANNEL = "BotName";
public static PircBotX bot;
public static void main(String[] args) throws Exception {
Configuration config = new Configuration.Builder()
.setAutoNickChange(false) //Twitch doesn't support multiple users
.setOnJoinWhoEnabled(false) //Twitch doesn't support WHO command
.setCapEnabled(true)
.addCapHandler(new EnableCapHandler("twitch.tv/membership")) //Twitch by default doesn't send JOIN, PART, and NAMES unless you request it, see https://github.com/justintv/Twitch-API/blob/master/IRC.md#membership
.addServer("irc.twitch.tv")
.setName(BOTNAME) //Your twitch.tv username
.setServerPassword(OAUTH) //Your oauth password from http://twitchapps.com/tmi
.addAutoJoinChannel("#"+CHANNEL)
.buildConfiguration(); //Some twitch channel
//.addListener(new MyListener())
bot = new PircBotX(config);
bot.startBot();
}
}
--
You received this message because you are subscribed to the Google Groups "pircbotx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pircbotx+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.