「!」を追加した後、次の作業を回避する方法がわかりません。その真ん中で
<category>
<pattern>test</pattern>
<template>testing stuff.</template>
</category>
<category>
<pattern>gg</pattern>
<that> testing stuff </that>
<template>works</template>
</category>
上記のコードは問題なく動作しますが、次のように変更すると:
<category>
<pattern>test</pattern>
<template>testing! stuff.</template>
</category>
<category>
<pattern>gg</pattern>
<that> testing stuff </that>
<template>works</template>
</category>
動作が停止するだけです。
では、2 番目のコードを機能させるにはどうすればよいでしょうか。ボットの発言には、この「!」が含まれている必要があります。その真ん中に
編集:
私は次のことを行うことでそれを回避する方法を見つけました:
<category>
<pattern>test</pattern>
<template>testing! stuff.</template>
</category>
<category>
<pattern>gg</pattern>
<that> stuff </that>
<template>works</template>
</category>
プロパティファイルで「!」を表示するように構成されているため、機能します。ラインスプリッターとしてですが、少し意図しないようです...この問題に対処する適切な方法はありますか?