Hello There, Guest!
View New Posts  |  View Today's Posts
[VB.Net] Twitch chat bot (irc client)

  • 0 Vote(s) - 0 Average


12-24-2012, 05:09 PM #1
dmgvol
Junior Member
**
Posts: 36 Threads:14 Joined: Dec 2012 Reputation: 0

Twitch chat bot (irc client)
Hey guys,
Recently I was trying making an Twitch chat bot (irc client) in VB.Net
But after some searching, I found that Twitch has more complicating connection.
Normal irc requires server,channel and nick.
But Twitch irc requires server,channel,nick and Twitch password.
http://i.imgur.com/5Xdrv.png
(That explain perfectly)

Thank you, Kobe, for giving me the opportunity downloading his TechChat.
It works great connecting to normal irc server, but it couldn't able to connect to twitch chat.

Any help?
How do i connect to a irc server with a password? [vb.net]
This post was last modified: 12-25-2012, 09:24 AM by dmgvol.

12-24-2012, 05:29 PM #2
KoBE
¯\_(ツ)_/¯
******
Global Moderators
Posts: 4,863 Threads:495 Joined: Jun 2011 Reputation: 67

RE: Twtich chat bot (irc client)
I think you to send the PASS command before the NICK/USER.

I'm not sure if it send a message to you or not as I've not had time to look into this fully. You might search through this and see what it says: http://www.irchelp.org/irchelp/rfc/rfc2812.txt

If you're looking to modify the IRC class here:
http://tech.reboot.pro/showthread.php?tid=1706

You would want to modify the Connect() method to send the PASS with it.

I'll look into this more when I am back at the house.

12-25-2012, 06:06 AM #3
Florin
Junior Member
Team Reboot
Posts: 456 Threads:71 Joined: Dec 2011 Reputation: 14

RE: Twtich chat bot (irc client)
First, did you tried something like "/join #channel password" ?

12-25-2012, 12:23 PM #4
dmgvol
Junior Member
**
Posts: 36 Threads:14 Joined: Dec 2012 Reputation: 0

RE: Twtich chat bot (irc client)
Kobe,
Yeah, I read about this and password should be sent before NICK/USER
like "PASS <password"
But according to your .NET client source (IrcClientDemoVB)
It works on a normal irc server and it's powered by your dll (IrcClient.dll)
So only you can update it, Looking forwards to it. NormalSmile

Florin,
I doesn't work like that... Unsure

12-26-2012, 09:46 AM #5
Crystalii
Senior Member
***
Posts: 341 Threads:43 Joined: Aug 2012 Reputation: 4

RE: Twitch chat bot (irc client)
He also released the source code. Anyone can add stuff to it :P

12-26-2012, 10:28 AM #6
KoBE
¯\_(ツ)_/¯
******
Global Moderators
Posts: 4,863 Threads:495 Joined: Jun 2011 Reputation: 67

RE: Twitch chat bot (irc client)
Here's the latest IrcClient source files:
http://tech.reboot.pro/showthread.php?ti...1#pid26701

You are free to modify them however you wish. You would want to modify the Connect() method.

12-27-2012, 02:46 AM #7
grendel1980
Junior Member
**
Posts: 13 Threads:0 Joined: Dec 2012 Reputation: 0

RE: Twitch chat bot (irc client)
We really do not need anything more going on Twitch. The place is a madhouse as it is.

12-27-2012, 12:29 PM #8
KoBE
¯\_(ツ)_/¯
******
Global Moderators
Posts: 4,863 Threads:495 Joined: Jun 2011 Reputation: 67

RE: Twitch chat bot (irc client)
(12-27-2012, 02:46 AM)grendel1980 Wrote:  We really do not need anything more going on Twitch. The place is a madhouse as it is.

That'd be your opinion I guess. Regardless, if someone needs help connecting, we're here to help.

05-27-2014, 09:30 AM #9
TizzyT455
Junior Member
**
Posts: 8 Threads:0 Joined: Jun 2012 Reputation: 0

RE: Twitch chat bot (irc client)
My twitch bot is probably hideous but the source is available:
XwitchBot

06-27-2014, 10:25 PM #10
TizzyT455
Junior Member
**
Posts: 8 Threads:0 Joined: Jun 2012 Reputation: 0

RE: Twitch chat bot (irc client)
If the OP is still wondering to connect to twitch server the following information is needed:
1) server address = irc.twitch.tv
2) port = 6667
3) pass = your oauth (example - oauth:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX)
4) nick = your twitch username
5) join = twitch channel with leading #

if you use a socket connection you connect using tcp and sockettype as stream.
you first connect, then send your oauth like this (assuming your ircClient send function is called Send):
Send("PASS oauth:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
replace X's with your actual oauth.
then you set your nick (nick must be associated with the oauth provided as pass) like this:
Send("NICK tizzyt")
replace tizzyt with your actual nick.
then finally the channel you want to join like this:
Send("JOIN #tizzyt")
replacing tizzyt with the channel you want to join.
This post was last modified: 06-27-2014, 10:27 PM by TizzyT455.




Forum Jump:


Possibly Related Threads...
Thread Author Replies Views Last Post
   Create your own IRC Client [C#/VB.Net] KoBE 185 134,999 10-01-2016, 06:57 PM
Last Post: AceInfinity
   IRC Client Class KoBE 110 84,793 10-01-2016, 06:52 PM
Last Post: AceInfinity
Star  Multi-Client Server Async Socket Example KoBE 165 184,102 09-10-2016, 05:17 AM
Last Post: R4TK3N
  Telnet Client AceInfinity 5 3,483 06-05-2016, 07:48 PM
Last Post: AceInfinity
   whatsapp chat api help? ѕα3єкα 2 2,304 07-14-2015, 10:32 AM
Last Post: ѕα3єкα


Users browsing this thread: 1 Guest(s)