Would sockets be good? For telling a IRC bot to do a certain thing? like /say "Sup" and etc? I may have a misunderstanding about Sockets so I'll go read up about them..also I think I may have done something wrong with my MySQL I create a database and I get PHP to try and open it but it says theres no such database. What should I do? It works when I use the database that MySQL provides for you the "test" database... o_o
I actually have a half completed IRC bot written in php. All the connections are done with sockets...
Ahh..so should I add like a command like "!Update" so the bot connects to the sockets and reads a MySQL server? I'm kinda confused..just tell PHP to connect to the IRC bot and type something? shouldn't the irc bot do something special?
There's no mysql involved in what I wrote. It just send straight IRC commands through the open socket.
Oh I see..I understand it a bit but does the IRC Bot have to do anything special? like a special script I have to make for him? Also whats the default port to my bot O_O
You can make the bot do whatever you want as long as it's within the command structure for irc or php. And maybe you want to make one that you can connect to, but I don't connect to my bot, I just connect it to irc.
Can we discuss this more on the IRC channel?
I'll be on there tomrrow night if you want to talk about it then.