added some development tools
[windows-sources.git] / developer / Samples / Bot / chatbot / addons / word_censor / INSTALL
blobec0398e312a7ec7232638a25fd3e689854aacd04
1 /***************************************
2 * www.program-o.com
3 * PROGRAM O 
4 * Version: 2.5.3
5 * FILE: word_censor/INSTALL
6 * AUTHOR: ELIZABETH PERREAU
7 * DATE: MAY 17TH 2014
8 * DETAILS: word censor INSTALL instructions
9 ***************************************/
13 STEP 1:
14 ----------------------------------------------------------------------------------------------
15 - run the following sql on your bot database*
16 ----------------------------------------------------------------------------------------------
17 CREATE TABLE IF NOT EXISTS `wordcensor` (
18   `censor_id` int(11) NOT NULL auto_increment,
19   `word_to_censor` varchar(50) NOT NULL,
20   `replace_with` varchar(50) NOT NULL default '****',
21   `bot_exclude` varchar(255) NOT NULL,
22   PRIMARY KEY  (`censor_id`)
25 INSERT INTO `wordcensor` (`censor_id`, `word_to_censor`, `replace_with`, `bot_exclude`) VALUES
26 (1, 'shit', 's***', ''),
27 (2, 'crap', 'c***', '');
30 * OPTIONAL:
31 Locate the file wordcensor.sql in the word_censor directory and import the data into your bot database.
32 This will handle both steps, listed above.
34 STEP 2:
35 ----------------------------------------------------------------------------------------------
36 - put the word_censor folder in the bot chatbot/addons/ folder
39 STEP 3:
40 ----------------------------------------------------------------------------------------------
41 - add the following lines to load_addons.php
43 //load the word censor functions
44 include("word_censor/word_censor.php");
47 STEP 4:
48 ----------------------------------------------------------------------------------------------
49 - add the following line to the function run_post_response_useraddon() (in load_addons.php)
51 //run the word censor before outputting
52 run_censor($convoArr);