greekhaima 2 Posted November 24, 2022 PircBot - IRC chat now working This code works by itself but not integrated with Dreambot. Goal: I'm trying to get twitch chat to integrate it with my bot. Issue: Can't get messages from Twitch Can do: I can connect and send messages successfully to twitch but the reading part is not working. import org.jibble.pircbot.PircBot; public class TwitchChat extends PircBot { public TwitchChat(){ this.setName("TwitchPlays"); } protected void onMessage(String channel, String sender, String login, String hostname, String message){ log("new message:"); log(message); } } this is the code in the OnStart for dreambot: //twitchBot: TwitchChat chat = new TwitchChat(); chat.setVerbose(true); try { chat.connect("irc.chat.twitch.tv", 6667, "oauth:EXAMPLE"); } catch (IOException e) { log(e.toString()); } catch (IrcException e) { log(e.toString()); } chat.joinChannel("#b0aty"); log(chat.toString()); //chat.sendMessage("#b0aty", "coool");//WORKS Seems like the event is not being fired or cached. Any thoughts ? I have also found this website for free socks5 proxies which work great: https://freeapiproxies.azurewebsites.net/
camelCase 324 Posted November 25, 2022 5 hours ago, greekhaima said: log("new message:"); log(message); these are pricbot logs so wont show up in dreambot logs if thats what you are expecting
greekhaima 2 Author Posted November 25, 2022 @camalCase you are wise. Thank you very much. additional question, is there any way to debug dreambot scripts?
camelCase 324 Posted November 26, 2022 12 hours ago, greekhaima said: additional question, is there any way to debug dreambot scripts? with an actual debugger? not practically
Recommended Posts
Archived
This topic is now archived and is closed to further replies.