In a new campaign, I added a single script with this content: on("ready",function(){
'use strict';
on('chat:message', function(msg) {
log(msg);
if(msg.type !== 'api') return;
sendChat('DynamicLightRecorder', 'This is a response', null, {noarchive:true});
});
});
After sending a few messages in the chat window, some with '!' at the front, and some without, the chat window starts to fill up with "This is a response" messages even without any further input. Looking at the log, it appears that the API is getting fed spurious chat:message events that replay previous chat messages for which events have already been received. This bug seems to have been reported numerous times, and never completely squashed. The above testcase seems pretty straightforward, so maybe this time we can properly deal with it!