Move logic for detecting output defence (bot filtering)
Right now we handle the input defence detection in handleHigherLevelChat(), but the output defence detection in chatGptSendMessage(), which strikes me as out of place. I'd like to move the output defence detection up to handleHigherLevelChat(). Which will make chatGptSendMessage() responsible for one thing fewer 👍
Also move the logic to detect output defences into defence.ts
while we're here, can we rename detectTriggeredDefences() to detectTriggeredInputDefences()
AC
Refactor ticket, so just regression testing here.
This is likely to conflict with #705 if done at the same time
Same comments apply here as in the testing comment for 705.