Seeking help with cross-linking scripts

Hello everyone
Recently, I have been trying to simulate the Huisgen1,3-dipolar cycloaddition of alkynyl and azide groups using an official script. However, during the simulation process, I cannot guarantee that two nitrogen atoms of an azide group can only react with two carbon atoms of an alkynyl group. Can you provide some ideas or have any teachers written similar scripts.
This is my first time seeking help from everyone on this platform. I apologize for my unclear expression of the problem.