Jump to content
Sign in to follow this  
Slythfox

IRC Bot

Recommended Posts

I know this has been asked before, because I've searched the forums. However, from the limited resource I've found so far, I have not gotten anything to work.

Share this post


Link to post
Share on other sites

Well I have something like this so far, but I don't get any sort of signal back for some reason...

$server = "irc.freenode.net"
$port = "6667"
$channel = "#TheSoftwareJedi"
$botname = "v2Bot"
$programname = "IrcBot"

TrayTip ($programname, "Starting TCP...", 1, 16)
TCPStartup()
TrayTip ($programname, "Connecting to server...", 1, 16)
$socket = tcpconnect($server, $port)
TrayTip ("", "", 1, 16)

TCPSend($socket, "NICK " & "" & $botname & "" & @CRLF)
sleep(500)
TCPSend($socket, "USER " & "" & $botname & "" & " 0 0 :" & "Xantibot" & @CRLF)
sleep(500)
tcpsend($socket, "JOIN " & "" & $channel & "" &@crlf)
sleep(1000)
tcpsend($socket, "MODE " & "" & $channel & "" & " +o " & $botname & "" & @crlf)

While 1

$recv = tcprecv($socket,1024*5)
    if $recv <> "" then
        msgbox(0, "", $recv)
    endif

WEnd

Share this post


Link to post
Share on other sites

Autoit sucks. I can get IRC working in PHP just perfectly. Yeah, you read it right, works in PHP.

Sucks to Autoit for not being like PHP.

Share this post


Link to post
Share on other sites

Autoit sucks. I can get IRC working in PHP just perfectly. Yeah, you read it right, works in PHP.

Sucks to Autoit for not being like PHP.

You need to go away. The only thing that sucks about AutoIt is the person that is at the keyboard not using it properly.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Autoit sucks.

Well, unfortunatley for you, this is this 'Autoit Forums'

If you do want to be a part of the Autoit Family, then we don't want you to be.

Share this post


Link to post
Share on other sites

Smoke? You sure seem to be on "intimate" knowledge about what my husband does or what he knows. What ya'll been doing behind my back? :whistle:;);)

Man... I thought we had you confined to 1 thread, then you moved to a couple of other chat threads, then to a scripts and scraps thread, now in support :P:D ???

What were we doing? Please!!!

Men make keyloggers and such to track what their spouses do on computers, women ... well ... they use some vulcan mind meld to get it out of you. Not like we can hide anything from ya'll anyway (well for any period of time that is).


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Well she don't like it when I take off road detours... :whistle:

Ok, I gotta stop reading this thread... I'm sober and laughing so hard I need a drink!

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

I don't think it is possible to get any more off-topic!

and smoke... I'm with u. :whistle:

Just wondering what was the purpose of bringing back up over 10 days later


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...