Better way to inject scripts that allows file splitting and arguments

hey so i currently have this https://github.com/Tricked-dev/betternexus/blob/master/src/background/index.ts that executes a script but i kinda want to split it in multiple files so i can organize it more but how would i still be able to have it have the config?
GitHub
betternexus/index.ts at master · Tricked-dev/betternexus
Just slightly improve the Nexus experience. Contribute to Tricked-dev/betternexus development by creating an account on GitHub.
1 Reply
lab
lab•2y ago
I'd just split the config itself into a function, then you can just call it when needed together with each exec
Want results from more Discord servers?
Add your server