New Posts  All Forums:Forum Nav:

PHP to parse IRC. - Page 2

post #11 of 13
Quote:
Originally Posted by Mrzev View Post

Im confused, what do you mean?
https://www.google.co.uk/search?q=php+irc+bot I'm guessing
Quote:
Originally Posted by Mrzev View Post

I dono, writing a php script that will read and write to a database sounds like a good learning experience. And then having another page read that database and generate a page sounds legit. Perhaps creating a rest interface to get the results. Seems worth while to me. Perhaps over-the-top, but I do a bunch of this with java and javascript right now.
You really don't want to be using a database as a back end for a chat server.
post #12 of 13
Thread Starter 
The database isnt the chat backend. I am only storing the filtered data, ie bob connects to the server. The table would create entries for new users and update the last seen for existing users. Along with that, its easy for me to add additional flags for certain things. By using
Quote:
Originally Posted by Plan9 View Post

https://www.google.co.uk/search?q=php+irc+bot I'm guessing

I can modify a pre-existing php bot to do exactly what I want yes.... or I can use an irc php library and do the same thing. Depending on the complexity, sometimes its easier to write your own instead of altering another. So when he says, "PHP IRC Bots are more than viable option and imo much better option than using a client and then scripting inside that client." I guess that is him saying that he agrees that its better for me to write my php thingy instead of taking mirc or whatever and writing a script inside there.

My bot is not a simple thing of, if someone says !helloworld to respond with "Hello Bob" or banning the user. That you can write a simple script inside a client to do. Most bots i have seen only do part of what i want it to do, but never all of it. IE, i want to add a voting system where a user does not need to type in !blue , but instead can say "i like the blue one". Thats a simple twiek in the code im sure, but the other part that i would like to do with it is to show a constantly updating pie cart of the voting results. By using a local database, i can easily do 1 second update intervals.


As i mentioned, i can write this in C# and not require the user to install a php client on their machine, but its definitely not bad to do it in PHP, it's actually nice to have scripted code vs compiled. If this was me learning web development or coding for the first time, yeah its a bit much, but i'm just new to PHP that's all.
Zev's Comp
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-2500K Sandy Bridge 3.3GHz GIGABYTE GA-Z68X-UD3H-B3 LGA 1155 Intel Z68 HDM... GeForce GTX 750 Ti G.SKILL Ripjaws X Series 8GB 
Hard DriveHard DriveHard DrivePower
1TB HDD 64GB SSD (Used for SRT) 500 GB. Antec BP550 Plus 550W Continuous Power ATX12V V... 
Case
COOLER MASTER ELITE 335 RC-335-KKN1-GP Black S... 
  hide details  
Reply
Zev's Comp
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-2500K Sandy Bridge 3.3GHz GIGABYTE GA-Z68X-UD3H-B3 LGA 1155 Intel Z68 HDM... GeForce GTX 750 Ti G.SKILL Ripjaws X Series 8GB 
Hard DriveHard DriveHard DrivePower
1TB HDD 64GB SSD (Used for SRT) 500 GB. Antec BP550 Plus 550W Continuous Power ATX12V V... 
Case
COOLER MASTER ELITE 335 RC-335-KKN1-GP Black S... 
  hide details  
Reply
post #13 of 13
It sounds like you've already decided how you're going to build this then. So good luck to you.

I'd probably still recommend looking at an IRC bot's source code though (be it C#, PHP, or whatever you're comfortable in) because you might find it easier to follow that than IRC's RFC. But in all honesty, the IRC protocol is pretty simple smile.gif
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Web Coding