How to run something on startup, but not every single time the lua editor is saved?

hi, i’ve got this notifier that runs a startup function that starts playback and sets a random bpm.

cool.

but the problem is that this is run every single time i save within the scripting editor. how do i stop this from happening?