C# Twitch.tv chat bot tutorial



http://youtube.com/HardlyDifficult
^^ I’ve moved… stop by sometime 😉

source

38 comments

  • Mempler 3 years ago

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

    Reply
  • Dmytro Volynskyi 3 years ago

    Is string for password good?

    Reply
  • Emre Öztürk 3 years ago

    visual studio is not free…

    Reply
  • McFlækkeFupz 3 years ago

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

    Reply
  • Adam Thompson-Sharpe 3 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.

    Reply
  • TrisT 3 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.

    Reply
  • TrisT 3 years ago

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

    Reply
  • sebold231 3 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.

    Reply
  • dedady 157 gaming 3 years ago

    i cant run it

    Reply
  • Old Account 3 years ago

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

    Reply
  • DeepIn Dofus 3 years ago

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

    Reply
  • Psychocrysma 3 years ago

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

    Reply
  • Write Official 3 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

    Reply
  • Pomarytu Wazaby 3 years ago

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

    Reply
  • anvalanche 3 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?

    Reply
  • Taumantis 3 years ago

    Always paste sources;p

    Reply
  • IMAKE 3 years ago

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

    Reply
  • artlai 3 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 !

    Reply
  • ARION 3 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.

    Reply
  • JustTheTip 3 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"

    Reply
  • Purps 3 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.

    Reply
  • Eluwei 3 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

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

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

    Reply
  • Nick RC 3 years ago

    you sound a lot like woodysgamertag!

    Reply
  • powerade661 3 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.

    Reply
  • KisoX 3 years ago

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

    Reply
  • SuperBulwy 3 years ago

    Cheers for the tutorial, much appreciated.

    Reply
  • ThisWasSomeRetardNameBefore :D 3 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?

    Reply
  • AcidzDesigns 3 years ago

    Check twitter dude @AcidzDesigns

    Reply
  • Brick 3 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

    Reply
  • VGRoulette 3 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.

    Reply
  • nailzor 3 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 😉

    Reply
  • Marc Cenido 3 years ago

    Amazing tutorial, thank you for doing this Sober

    Reply
  • JinteiPlays 3 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?

    Reply
  • Kalatornora 3 years ago

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

    Reply
  • swedishwb 3 years ago

    Keep it up Sober 🙂

    Reply
  • Advo 3 years ago

    Miss you sober! How you been?

    Reply
  • Old Account 3 years ago

    Let me know if you have any questions!

    Reply

Add your comment

Your email address will not be published.