Skip to content
Vahid Hedayati edited this page Nov 3, 2015 · 1 revision
  1. Video 1.24 Chat BOT now working in chat rooms, returning responses and banning/kicking users

Chat Bot in main chat rooms:

wschat.enable_Chat_Bot=true
wschat.enable_Chat_AI=true
wschat.enable_Chat_BadWords=true

By default their set to above values, change them in your config.groovy to disable bad words and Chat AI

The process to look up input output would suite something like (if you registered below in your bootstrap):
 * 
 *     ChatAI.findOrSaveWhere(input:'contact number', output: '0800 123456' )
 *     ChatAI.findOrSaveWhere(input:'opening hours', output: '9 - 5' )
* The process to look up input output would suite something like (if you registered below in your bootstrap):
 * ChatBadWords.findOrSaveWhere(input:'poo', output: '/kickuser' )
 * //minutes months hours years days
 * ChatBadWords.findOrSaveWhere(input:'pants', output: '/banuser', duration: 1  ,period: 'minutes')
 * ChatBadWords.findOrSaveWhere(input:'bastard', output: '/banuser', duration: 1  ,period: 'months')
Clone this wiki locally