download: www.adammr.com/irc-astro-code-3-1-07.zip
the file birthdata.txt is included with some sample birthdates/times/locations. The format is name d m y h m latdeg latmin longdeg longmin.
Use a negative number for latdeg for south and a negative number for longdeg for west.
They all work the same in that they are fed two pieces of info. n is name or who sent it and p is the body of what they sent. the code will output the info to that name. On irc a name could be a login handle if it was sent via a querry or it could be a channel such as #horoscopes. the code will parse the body of the messge to see if its a command for example if the body is !planets it will register to go to the planets function and when it finishes doing the caclulations and formats the output it will send a response typially to the name ( and it will use the output method of sending for example a privatemessage on irc ) and the response will be in the same communication method that it got the input, i.e.if the message came in a channel tell it responds to the channel.
I think maybe with shouts on icc it may not use the name to figure out how to send the output, but it still tracks the name for exaxmple there is an ignore list or it could send a private message to that person if its max tells is exceeded. But it just knows that if it receives a shout to send a shout. There are some if statements at the bottom of each function that sends output like the planets function that you send a variable in, this is handled in proccesShout the setting up of what 'channel' it came in' that tell it should i shout this or send to a channel ( i think in chanels case the name is the channel number ) or should I send output directly to a person.
To use this code you just need a telnet bot that can connect to irc or chessclub.com and extract the communmications such as tells and privmessages and send them to these point of entry functions split into who sent it and what they said.
adams161 at fastmail ( hang on its not .com ) .fm (federation of micronesia)