Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Decommissioned > Flash Chat Project

 
 
Thread Tools Rate Thread Display Modes
Old 07-06-2004, 09:01 PM   #1
crownoflife
Registered User
 
Join Date: Jul 2004
Posts: 1
Default Chat bot written in Actionscript

I'm new to this forum, and am a Web Designer. I know Java, PHP, MySQL, and have dabbled with Flash/Actionscript. I want to have a web-based chat on my company's website for our customers, and while that seems easy enough a request (I found several out there), it also needs to incorporate trivia questions, like what the IRC bots do in the trivia channels. Could someone help point me in the right direction as to how I might go about this? I realize it will vary according to chat client as to the exact implementation, but I'm not looking for the full source code - just a bit of guidance, and maybe there are some tutorials out there but I haven't found any yet. Here are my current thoughts:

I'm guessing I would use the setInterval() function to have the bot display a question every X seconds. After a total of Y seconds have elapsed OR a correct answer has been typed, it would display the next question. The bot would function like another user, because it would be sending messages, but they would be auto-generated & displayed every X seconds. Every time a message is posted by another user, it would parse the message and compare that string to the question's answer, and probably say something as simple as "Correct!" or "Wrong, please try again." I'm not sure how I would have access to the individual messages though - would have to look at the code for the chat client first I guess, which I don't have yet. Furthermore, this bot would always be logged in I'm thinking, assuming trivia is always on, but then when does it start? Maybe I should have the trivia on only during certain times of the day? Still not sure how many different questions I would need and all that. These latter issues though aren't as important just yet.

Thanks in advance for any help you can give me!

----
Rachel

Last edited by crownoflife; 07-28-2004 at 03:28 PM..
crownoflife is offline  
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:12 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.