C# Twitch.tv chat bot tutorial

^^ I’ve moved… stop by sometime 😉



  • Mempler 4 years ago

    C# is alot Easier AS Java and the most Windows system has it

  • Dmytro Volynskyi 4 years ago

    Is string for password good?

  • Emre Öztürk 4 years ago

    visual studio is not free…

  • McFlækkeFupz 4 years ago

    i made this but it doesnt work http://hastebin.com/ocofixigov.cs

  • Adam Thompson-Sharpe 4 years ago

    I made this into a pretty cool program.
    You enter your twitch username & password, and then you can use commands like "join" to manage your bot.

  • TrisT 4 years ago

    Ok, so anyone curious as to why their things are not working, I kind of have an answer.
    You have no idea how to code, c# is not hard, go learn it and solve your problems/really stupid questions. Otherwise, use something someone's done already.
    I'm not being a dick and crushing dreams, you just can't expect things to work with coding in general, so you either learn or go another route.

  • TrisT 4 years ago

    nice vid tho, had no idea where to start had never hurd of irc

  • sebold231 4 years ago

    Ok, I copied everything like it is shown in the video but it seems that my loop isn't infinite and stops after the 10th loop.
    Does anyone know what i did wrong?

    Thanks in advance.

  • dedady 157 gaming 4 years ago

    i cant run it

  • Old Account 4 years ago

    I've moved to @HardlyDifficult – new channel: https://www.youtube.com/channel/UC3bHnBF2Q-u-1NEYG0Xwgeg

  • DeepIn Dofus 4 years ago

    Hey I'm trying to reproduce the bot in Unity, and it doesn't look like it's working, at all!

  • Psychocrysma 4 years ago

    How can I know from who the command/message comes from?

  • Write Official 4 years ago

    Can you make a video on how to make an irc bot like connect to a regular irc server? instead of a twitch bot

  • Pomarytu Wazaby 4 years ago

    I doesn't seems to work anymore 🙁
    I don't even know if it connects to twitch

  • anvalanche 4 years ago

    when it builds it makes it all the way to the end but then gives me am error 'twitchbot.exe' does not contain a static 'Main' method suitable for an entry point (CS5001) any help?

  • Taumantis 4 years ago

    Always paste sources;p

  • IMAKE 4 years ago

    Nice video, but you should make sure you upload videos at 720p or >

  • artlai 4 years ago

    Amazing Tutorial 😀 Discovered you today and you helped me a lot.
    But ( there is always a but ) i followed all your instructions, and i keep having an error (the object reference is not set to an object instance ) i'll try to figure it from myself but if you have a clue 😀

    EDIT : Fixed it by adding a simple 
    if (message == null)
    message = "";
    in the readMessage()

    Aaaand now i have an unsucessful login..

    Keep it up !

  • ARION 4 years ago

    Amazing, the only problem is if you want this bot you must have a server with the program 24/7 or atleast when you are streaming.

  • JustTheTip 4 years ago

    So the bot crashes at 30 seconds every time due to if (message.Contains("!hello")) every time, any ideas, this is the error i get "An unhandled exception of type 'System.NullReferenceException' occurred in twitchChatBot.exe"

  • Purps 4 years ago

    first of all, I'd like to thank you for this, really useful. I have one little question though. How would I disconnect from irc if I wanna stop the bot ? Thanks.

  • Eluwei 4 years ago

    I'm trying to get this to work, I have the code the same except for the password, channel and username, but every time I try to run it I get the the following after a few seconds

    {"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond (IP Address here):6667"}

    any help would be appreciated

  • Игорь Козинов 4 years ago

    Thank you, bro.
    With this code I can write mt own chatBot !

  • Nick RC 4 years ago

    you sound a lot like woodysgamertag!

  • powerade661 4 years ago

    Please make more videos like this I am learning a lot. I would also like to know how to do the cap commands for twitch along with joining a channel with a button.

  • KisoX 4 years ago

    i liked the "i dont know why but it works" part 😀

  • SuperBulwy 4 years ago

    Cheers for the tutorial, much appreciated.

  • ThisWasSomeRetardNameBefore :D 4 years ago

    Hi Sober, this is really great tutorial. But for some reason I am just getting this error: https://gyazo.com/df67ecd498898e4bb5f3f31fde073fcc . This error is coming about 30 seconds after I started it. And it does not respond if I type !hello before it crashes. Can you help me?

  • AcidzDesigns 4 years ago

    Check twitter dude @AcidzDesigns

  • Brick 4 years ago

    Amazing tutorial man, i was wondering if you are still thinking on making a part 2. I still cant find a good way to get all the users

  • VGRoulette 4 years ago

    Great tutorial, followed your code step by step and saw instant results, but this was not what I was looking for I need to learn how to run this code in a windows form application so i can have multiple class tabs for different bot functions. To list some off Chat Window (for testing commands), Command Tab (For Adding On Text Response), Song Request Browser. Maybe for part 2 you should explain how to take this code and connect it to a windows form application to output chat from the channel we join to a window. If you need a great example of this look up ankhbot I want to put something together similar to this but more open for devs to update the base functions to work with their design.

  • nailzor 4 years ago

    Nice video!  You can get rid of the flush stuffs with: outputStream.NewLine = "nr"; outputStream.AutoFlsuh = true; 

    The main hurdles I ran into were handling exceptions with the sockets in the while (true) side of things – for instance if the Internet went out, lose WiFi for a second, etc.  Socket breaking junk.

    Many try/catches later, it stopped 'not responding' on these errors haha 😉

  • Marc Cenido 4 years ago

    Amazing tutorial, thank you for doing this Sober

  • JinteiPlays 4 years ago

    looks very interesting sober:D definetely want to learn C# but for now i would have to do even more basic tutorials first, any tips on where i might find some of those?

  • Kalatornora 4 years ago

    Hey! Thanks for doing this It is exactly what I need to start coding my bot from scratch greatly appreciate it!

  • swedishwb 4 years ago

    Keep it up Sober 🙂

  • Advo 4 years ago

    Miss you sober! How you been?

  • Old Account 4 years ago

    Let me know if you have any questions!


Add your comment

Your email address will not be published.