-
Notifications
You must be signed in to change notification settings - Fork 10
ChatBot
Vahid Hedayati edited this page Nov 3, 2015
·
1 revision
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')