document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. //-----------------------
  2. //The name of our chatbot
  3. //-----------------------
  4. $chatBot::name = "Bob";
  5.  
  6. //-------------------------------------------------------------
  7. //Our Chatbot\'s Responses, anything that uses multiple
  8. //Words should instead use an underscore "_" instead of a space
  9. //Users can constantly add new keywords to respond to
  10. //-------------------------------------------------------------
  11. $chatBot::response["Hi"] = "Hi Hey What\'s_up Heya Howdy";
  12. $chatBot::response["Lol"] = "What\'s_So_Funny? Haha_I_don\'t_get_it... That\'s_not_funny";
  13.  
  14. //--------------------------------------------------------
  15. //Number of milliseconds that our chatbot will not respond
  16. //After having responded to any phrase at all
  17. //--------------------------------------------------------
  18. $chatBot::timeOut = 5000;
  19.  
  20.  
  21. package myFirstChatBot
  22. {
  23.     //---------------------------------------------------------
  24.     //There are only a few parameters we need to focus on here
  25.     //Which are %name and %msg
  26.     //---------------------------------------------------------
  27.    
  28.     function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
  29.     {
  30.         parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
  31.     }
  32. };
  33. activatePackage(myFirstChatBot);
');