What I want is a script that adds $6 to a list from #chan1

then if it appears in $4 in #chan2 to remove it from the list

then allow me to display what is left in the list using a command

and also allowing me to clear the list

I was thinking I could have an ontext event for #chan1 to add the info to a text file

then another ontext for #chan2 to search the file and remove the info if it exists

then for display use echo or /play

and for clearing the list use write -c to clear the file

is there a better way to do this?