AI Zone Admin Forum Add your forum

CHATBOT MEETUP CHATBOT MEETUP CHATBOT MEETUP CHATBOT CHATBOT MEETUP CHATBOT MEETUP CHATBOT MEETUP CHATBOT MEETUP

On June 28th, 2017 we're organizing our next Chatbot Meetup in Amsterdam, The Netherlands. Feel free to join!'

Best way to add own interjections
 
 

Hi,

is there a better way to add interjections than adding them to the interjections.txt and :build 0 ?

I would like to do it without touching livadata and just changing my own topic source files.

Thanks in advance,
Tobi

 

 
  [ # 1 ]

In any script file of yours use replace:

replace:  whoops ~emosurprise
replace: I_do_not_think_so hardly+right


and in cs_token bot definition enable | #DO_PRIVATE

 

 
  [ # 2 ]

Thanks!

What if I want to have the input

“Hm?”

as the interjection ~emomisunderstand?

replace: ( < hm >) ~emomisunderstand 

Is not doing what I want it to.

 

 
  [ # 3 ]

replace: <hm_?> ~emomisunderstand

There are no parens in the replace command and the item must be a single token

should work, if your cs_token has #DO_PRIVATE as part of it.

 

 
  login or register to react