I need a script that when someone writes an operators nickname anywhere in a sentence it will check if the operator is written in operators.txt, if not, the script will write him to channelOperators.txt
Maybe I should add an example of an input output situation?
[2000] ManNose: hi @Mark and @Tony how are you?
If Mark and Tony have already been written before on operators.txt it won't write them to channelOperators.txt (without the @ )
Another example could be:
[2000] ManSoe: lol@Mark
OR
[2100] @Mark@Tony
That should work too... I mean check if Mark is in the list or not and add if required and add Mark and Tony if required in the second example.
When adding Mark and Tony the script will add each operator in a seperate line
@Mark
@Tony
@SomeoneElse
If anyone has any question I am here to answer, I hope I wrote this post properly and anticipate a reply, I hope
