Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot not detecting messages in chat #5

Open
megaphonixmusic opened this issue Nov 21, 2023 · 1 comment
Open

Bot not detecting messages in chat #5

megaphonixmusic opened this issue Nov 21, 2023 · 1 comment

Comments

@megaphonixmusic
Copy link

megaphonixmusic commented Nov 21, 2023

Hi,

I've been troubleshooting this all day since discovering this project, but: my chatbot works great and is able to enter the chat, verbose log messages, and even send a message (if I put a sendMessage command inside the Bot class).

However, the bot does not detect any messages sent in chat (despite logging them). I've tested this by inserting a basic sendMessage command before the parseCommand, as follows:

public void onMessage(String channel, String sender, String login, String hostname, String message) {
    sendMessage(channel,"Message detected");
    parseCommand(message);

Yet despite repeated messages being sent in the chat (again, being logged in the console), this sendMessage never triggers - indicating the bot is not detecting messages.

With my fairly rudimentary programming knowledge, my guess is that this method is being inherited from PircBot and is not working with Twitch's IRC message formatting (which must've changed in the past couple years judging by this codebase's previous functionality).

Is there an easy fix here? I've tried a bunch of different options short of going into the PircBot source myself and attempting to fix it through brute force.

@Schkullie
Copy link

Schkullie commented Nov 26, 2023

Hey,

I've just checked my setup of the code and it does work for me as intended (aka triggering a MIDI note when a certain string is send in chat)
I'm not the original programmer, but I might be able to help you with this as I modified the program a bunch or myself a couple years ago.

Just so I can see where you might be stuck, a couple questions:
What exactly are you trying to do with this program?
Did you follow the setup completely?
Is your overlaying issue that you're not getting a MIDI signal in your DAW?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants