hassank1 Posted November 1, 2008 Share Posted November 1, 2008 I already have a chat room I've designed using ajax.. where ppl can chat and view who's online.. I want to add to this chatroom a chatbot (something similiar to an IRC bot [if u still remember the mirc days ] ... so it will be online .. and automatically answer specific users questions.. I want to know what should I do to implement such a bot ... no need to get deep into coding... just ideas .... any post that may help is welcomed.. thanks. Quote Link to comment Share on other sites More sharing options...
Mchl Posted November 1, 2008 Share Posted November 1, 2008 What's the backend for your chat? If you store chat in database, then you could out your bot in a php script, that sees all messages as they are inserted into database and reacts upon them. Quote Link to comment Share on other sites More sharing options...
corbin Posted November 1, 2008 Share Posted November 1, 2008 IRC is still alive and well ;p. Why not just mod the script that inserts user writings into the database to handle the 'bot' stuff. Since the bot would in essence be responding to user writings. Quote Link to comment Share on other sites More sharing options...
hassank1 Posted November 1, 2008 Author Share Posted November 1, 2008 hehe ! maybe still alive... but it was more famous before the web 2.0 and social networking age ! don't u agree? what do you mean by 'mod the script' ? Quote Link to comment Share on other sites More sharing options...
Prismatic Posted November 2, 2008 Share Posted November 2, 2008 hehe ! maybe still alive... but it was more famous before the web 2.0 and social networking age ! don't u agree? what do you mean by 'mod the script' ? Well actually web 2.0 has incorporated IRC into it, most chat rooms you hit online are backed in some form or another by an IRC server. Quote Link to comment Share on other sites More sharing options...
corbin Posted November 2, 2008 Share Posted November 2, 2008 I'm idling in a couple channels right now. (Actually on my desktop, not this computer.) (Oh, and nothing illegal/perverted. People think bad things about IRC for some reason x.x.) Difference between dead and less popular ;p. I meant mod as in change. Modify. Quote Link to comment Share on other sites More sharing options...
hassank1 Posted November 2, 2008 Author Share Posted November 2, 2008 what you've said already was really useful I will handle the bot issue on inserting that's for sure.. and I will build the bot as a class.. because I guess using OOP here is a good idea... and about IRC I didn't knew that... Now I do ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.