1 /***************************************
5 * FILE: word_censor/INSTALL
6 * AUTHOR: ELIZABETH PERREAU
8 * DETAILS: word censor INSTALL instructions
9 ***************************************/
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***', '');
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.
35 ----------------------------------------------------------------------------------------------
36 - put the word_censor folder in the bot chatbot/addons/ folder
40 ----------------------------------------------------------------------------------------------
41 - add the following lines to load_addons.php
43 //load the word censor functions
44 include("word_censor/word_censor.php");
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);