compile into single file
Bundling the bot into a single file fails because sapphire loads commands/listeners files when run, not via import. Is there a simple setting in the bot to statically import all the commands?
26 Replies
What is the reason to deploy a single file?
works easier with the hosting provider. can't change this circumstance, need static imports, but don't see any docs on that
I don't think you can override that
you're saying this would require editing the sapphire framework?
More like not supported?
It revolves around pieces which are loaded at runtime
how necessary are those pieces to be loaded at runtime though
considering that's how every single part of sapphire works really rough
Everything in sapphire is a piece
yeah basically
it's built around pieces as modules
you just add more moduels to load more commands or your own modules
you don't bundle really
It would seem your best option is to use a hosting provider that allows you to have more than one file
in fact I'd say bundling is probably an anti pattern here
huh
well ty for preventing me from wasting hours to mold sapphire to do that
yeah wouldn't want that
still gotta somehow get it bundled unfortunately. ill find another way ig
maybe you're going down the wrong path
take a closer look at your hosting solution
maybe you're not limited