I was trying to make a C# IRC Twitch Bot but i just couldn´t connect to irc.twitch.tv -
so i tried to code from a user and it worked. I was able to connect to irc.twitch.tv ( Used the username and password from the “bot-account” ) .
Nothing happens when i write PING . ( The Bot doesnt write PONG )
In the console it shows the messages from the users ( in my channel ) so im connected for sure.
…and thus not start with PING. Your bot should only respond with PONG when the server sends a message with the PING prefix. If this is not the case, and you only mean that the bot doesn’t respond when you manually set buf to “PING”, then it could be because of this bit:
Hm. Thanks for the answer. But do you have any ideas how to make him answer to specific text messages ?
for example “PONG” to" PING" ?
I dont have a lot of experience in working with C#
@Lepstr made a message parser in C# you could use. Modify this to your liking so that you can isolate the message part of a PRIVMSG and respond appropriately.