Jump to content

#AutoIt on irc.freenode.net - TrayIRC 0.22


jvanegmond
 Share

Recommended Posts

There's a list in my source. Between some functions.

CODE
Common recieves:

Nick = User who the message is from

Name = Settable by user, set in the USER command

host = ISP host

~~~~PRIVMSG~~~~

You recieve this when someone has sent a message in a channel,

gives you there Nick, host, the channel it was said in and the message.

SYNTAX:

:Nick!Name@host PRIVMSG #Channel :Message

EXAMPLE:

:Chip!Chip@OMN-8243F63D.dsl.bell.ca PRIVMSG #Chip :Hey guy's

Would be a message from Chip to say 'Hey guy's' in the channel #Chip

:Chip!Chip@OMN-8243F63D.dsl.bell.ca PRIVMSG Bob :Hey Bob!

Would be a Personal Message from Chip to Bob saying 'Hey Bob!'

~~~~~~~~~

~~~~MODE~~~~

You recieve this when a mode is changed, a mode can give/take access change certain

things like who can join a channel etc..

SYNTAX:

:Nick!Name@host MODE #Channel +/- MODE (USER)

EXAMPLES:

:ChanServ!services@host MODE #Chip +o Chip

This says ChanServ (usually a service bot) has given Chip Operator access in the channel #Chip

:ChanServ!services@host MODE #Chip +i

This makes #Chip invite only, so only OPs can invite users in the channel.

:Chip!Chip@OMN-8243F63D.dsl.bell.ca MODE Chip +i

This will make Chip invisible to WHOIS. These are usermodes.

~~~~~~~~~

~~~~PING~~~~

You recieves these at random to make sure your still online and

not disconnected.

SYNTAX:

PING :Randomletters

Usually a PING has random letters that you have to respond with.

EXAMPLE:

PING :29809dj0d

You would respond with

PONG 29809dj0d

~~~~~~~~~~~

~~~~JOIN~~~~

You recieve this when someone joins a channel.

SYNTAX:

:Nick!Name@Host JOIN :#Channel

EXAMPLE:

:Chip!Chip@OMN-8243F63D.dsl.bell.ca JOIN :#Chip

This would be sent to everybody in #Chip to show that Chip has joined the channel #Chip

~~~~~~~~~~~~~

~~~~KICK~~~~

You recieve this when someone gets kicked (Including yourself!)

SYNTAX:

:Nick!Name@Host KICK #Channel User :Reason

EXAMPLE:

:Chip!Name@Host KICK #Chip Bob :Talk in private

Would kick Bob from #Chip and say 'Talk in private' in the reason

~~~~~~~~~~~~~~

~~~~QUIT~~~~

You recieve this when someone disconnects from IRC.

SYNTAX:

:Nick!Name@Host QUIT :Reason

EXAMPLE:

:Chip!Chip@OMN-8243F63D.dsl.bell.ca QUIT :I'm bored

Would be sent to everyone in the channels Chip was in to say that he left IRC because He was bored.

~~~~~~~~~~~~~~

For the other packets, I use a ConsoleWrite to show my incoming packets. So it is mainly outgoing packets that I am concerned with.

Ohh I guess I just scrolled over that part. Thank you :)
Link to comment
Share on other sites

  • Replies 73
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Update

; Changes:
; - Return value from /nick, if nick is taken, give an error and take a new nickname
; - Support messages from others with QUIT and PART
; - Send messages with /quit and /part commands, ask confirmation with both commands
; - Added support for channel messages (Message of the Day)
; - Changes name when it's already in use, adds an 1 behind it
; - /me interpreter and interprets /me commands from others
; - Trim all weird characters, only display ASCII characters between -x- and -x-
Edited by Manadar
Link to comment
Share on other sites

Again a great script, Manadar !

I took the time to read the code, and I like the way you did it.

Just a suggestion, by the way.

In the main loop, I do prefer the use of 2 functions :

- The first one would get the message and return it with flags (an array ?)

- A second one would take this message and flags, and do whatever is necessary according to the associated flags.

This way, it's easy add some new behaviors depending the text message itself, or its flags (QUIT, PART, NICK, KICK, etc etc).

You did the hardest part, thanks again :)

Apzo.

Link to comment
Share on other sites

It took me awhile to realize that the input is in the console.

But It works amazingly. =]

Fun to mess around with while monitoring from an alternate IRC client.

Also: The source link does not work.

EDIT: Never mind, it was just slow.

Edited by MaudKip
Link to comment
Share on other sites

Again a great script, Manadar !

I took the time to read the code, and I like the way you did it.

Just a suggestion, by the way.

In the main loop, I do prefer the use of 2 functions :

- The first one would get the message and return it with flags (an array ?)

- A second one would take this message and flags, and do whatever is necessary according to the associated flags.

This way, it's easy add some new behaviors depending the text message itself, or its flags (QUIT, PART, NICK, KICK, etc etc).

You did the hardest part, thanks again :)

Apzo.

I agree with you on the functions. I should have built them, but I just copied whatever Chip had done before and modified it and expanded it..

It's still easy to add new behaviors now, there's a part where all the If Then EndIf statements are lined up, where you can easily add new things.

Link to comment
Share on other sites

I see a lot of potentials in this but i think it needs a lot of CORE improvments , to become really competitive. Now you can work on it on holidays.

Take a look at that IRC client for some ideas. One suggestion-you could add Smilies simply by something like:

Local $str_rep = StringReplace(GuiCtrlRead($InputEdit), ':)', '<img src="http://www.autoitscript.com/forum/style_emoticons/autoit/smile.gif"></img>')
Edited by Gif
Link to comment
Share on other sites

Good to see my IRC UDF put to good use:D

Link to comment
Share on other sites

I think it's that my router doesn't forward the port. How do I fix this?

You don't have to forward any ports to create an outgoing connection. The router does not interfere with the connection.

You likely have a firewall blocking the application. Make sure that you have accepted AutoIt in your firewall, or in your Windows XP firewall..

Try to run anything AutoIt that uses the TCP functions, and they will probably not work either.. If they do, tell me.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...