greekhaima 1 Share 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/ Link to comment Share on other sites More sharing options...
camelCase 220 Share 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 Link to comment Share on other sites More sharing options...
greekhaima 1 Author Share Posted November 25, 2022 (edited) @camalCase you are wise. Thank you very much. additional question, is there any way to debug dreambot scripts? Edited November 25, 2022 by greekhaima Link to comment Share on other sites More sharing options...
camelCase 220 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now