Your bot's packages install automatically every time it starts. You just need to list them in the right file.
Node.js
List your packages in
package.json. Every start runsnpm install, so anything in there is installed.Need something not in
package.json? Add it to Additional Node packages on the Startup page, separated by spaces.To remove one, add it to Uninstall Node packages.
Don't upload your
node_modulesfolder. It's built on the server.
Python
List your packages in
requirements.txt, one per line. Every start installs them.Your file has a different name? Set Requirements file on the Startup page.
Extra packages can go in Additional Python packages, separated by spaces.
Java
Java bots don't install packages on start. Build a "fat" .jar that includes everything your bot needs, and upload that.
Package Won't Install?
Check the Terminal while your bot starts. The install output shows what failed.
Check the package name and version are right.
Some packages need a newer Node.js or Python version. Change it under Docker Image on the Startup page.
Related Articles
Was this article helpful?
Your feedback helps us improve the documentation. Thanks — we’re glad this article helped. Sorry about that. What were you hoping to find? Thanks — we’ll use your feedback to improve this article.