lmariscal / twitchirc

Twitch Bot Development made Easier | DEPRECATED
Other
39 stars 15 forks source link

I have no clue whats going on its not connecting to channel or sending message #29

Closed NiD27 closed 6 years ago

NiD27 commented 6 years ago

https://gyazo.com/a8edd38dab45a97f6e9d2dec0d37d7cc https://gyazo.com/e9c0cdc329814d75af9a6540c8a94bc4

mvarendorff commented 6 years ago

Could not reproduce: grafik

Code is the basically the same you posted; just with a different name of the bot. The logger does not mention any errors and only confirms that you connected to the channel. There is nothing in your screenshot of the logs that shows the message sending but the code should do so.

If you are worried about the red text, that is perfectly fine and intended (maybe not the red color but that is how IntelliJ displays it). That is only the Logger doing its work so if you think that that is a massive error, it is not.

NiD27 commented 6 years ago

@geisterfurz007 any idea why no message i just seen yourbot in my channel can you send me your code pls ill try that

mvarendorff commented 6 years ago
package com.cavariux.twitchirc;

import com.cavariux.twitchirc.Chat.Channel;

public class TestMain {

    public static void main(String[] args) {
        TestBot bot = new TestBot();
        bot.connect();
        Channel channel = bot.joinChannel("nidhish_a_n");
        bot.sendMessage("Hi, Im connected!", channel);
        bot.start();
    }

}
package com.cavariux.twitchirc;

import com.cavariux.twitchirc.Core.TwitchBot;

public class TestBot extends TwitchBot {

    public TestBot() {
        this.setUsername("MyUsername");
        this.setOauth_Key("MyOauthToken");
    }

}
NiD27 commented 6 years ago

@geisterfurz007 thanks very much

NiD27 commented 6 years ago

@geisterfurz007 you are the man bro got it working its was the start function that i needed to put in the last <3 thanks for help

mvarendorff commented 6 years ago

No problem! Enjoy coding and good luck!