Hello,
I would like to use topic. I found an exemple, but it’s not working very well.
There’s a topic insult and a topic pardon.
When the bot detect an insult, it ask if it’s for him, and reply. But the second or third time, it’s not asking the question.
This is the code (in french, for insults) :
<category>
<pattern>INSULTE</pattern>
<template>Gros naze</template>
</category>
<category>
<pattern>CON</pattern>
<template>
<srai>INSULTE</srai>
</template>
</category>
<category>
<pattern>BATARD</pattern>
<template>
<srai>INSULTE</srai>
</template>
</category>
<category>
<pattern>SALOP</pattern>
<template>
<srai>INSULTE</srai>
</template>
</category>
<category>
<pattern>ENCULE</pattern>
<template>
<srai>INSULTE</srai>
</template>
</category>
<category>
<pattern>CONNARD</pattern>
<template>
<srai>INSULTE</srai>
</template>
</category>
<category>
<pattern>SALOPE</pattern>
<template>
<srai>INSULTE</srai>
</template>
</category>
<category>
<pattern>INSULTE</pattern>
<template>
<think> <set name="topic">INSULTE</set> </think>Tu me parles la
</template>
</category>
<topic name="insulte">
<category>
<pattern>OUI</pattern>
<that>Tu me parles la</that>
<template>
<srai>INSULTE</srai>
</template>
</category>
<category>
<pattern>NON</pattern>
<that>Tu me parles la</that>
<template>
<srai>PARDON</srai>
</template>
</category>
</topic>
<category>
<pattern>PARDON</pattern>
<template>
<think>
<set name="topic">PARDON</set>
</think>
je prefere ça
</template>
</category>
<topic name="insulte">
<category>
<pattern>INSULTE</pattern>
<template>
bon, je ne dis plus rien alors
</template>
</category>
</topic>
I surely missed something in this code, but I don’t see what.
Thanks,
Patrice