fires before a new comment is added
| id | number | the ID of the new comment |
| obj | object | the comment object |
| index | number | the position of the new comment within the comment history |
$$("comments").attachEvent("onBeforeAdd",function(id,obj,index){
// your code here
const day = obj.date.getDay();
});