How do I upload and structure my bot files?
Once your plan is ready, getting your bot's code onto the server takes just a couple of minutes. This article walks you through uploading your files and structuring them so the panel finds everything on the first try.
Uploading your files
You'll do all of this from your server's Files tab in the client area.
- Open your server in the client area (https://humbleservers.com/client) and go to the Files tab.
- Upload your files — drag and drop files or whole folders straight into the file manager (there's no upload size limit), or use SFTP (the SFTP button on the Files page shows your address and username and lets you set an SFTP password).
- Place your main file and your dependency file (
package.jsonfor Node.js orrequirements.txtfor Python) in the root folder, with any assets (images, config files) alongside them.
How to structure your project
A clean layout in the root folder keeps your startup command simple:
- Keep your entry file (for example
index.jsorbot.py) in the root. - Keep your dependency file in the root so packages install automatically.
- Put supporting assets and config beside them, using relative paths from the root.
Tip: Keep the entry file in the root so the startup command finds it without extra path juggling. If your file lives in a subfolder, you'll need to include that folder in the startup path.
Frequently asked questions
Should I upload a zip or the individual files? Either works. You can upload an archive and unpack it in the Files manager, or drag individual files or whole folders in. SFTP works well too.
Do I need to upload my node_modules / installed packages? No — dependencies install automatically from your package.json or requirements.txt, so you can leave those out.
More in Frequently asked questions
- Which languages and libraries can I host?
- What do I need to host my bot, and is the panel Pterodactyl-based?
- How do I set which file runs and start the bot?
- How do I install my bot's npm / pip dependencies?
- Will my bot run 24/7?
- Can I host two bots on one plan?