After installing your Discord bot on FPS.ms, you can edit your code in three ways: directly through the panel file manager, via an SFTP client, or with VS Code live sync.
Panel file manager
The simplest option — edit files directly in the Files tab of the FPS.ms panel. This works well for quick changes but is limited for larger edits.SFTP client
Use any SFTP client (like FileZilla) to open and edit your bot files in your preferred editor. This gives you full control over your project files.Visual Studio Code live sync
For the best development experience, use VS Code with SFTP sync. Changes you save locally are automatically uploaded to your FPS.ms server.- Download the SFTP Extension for VS Code.
- Open a local directory you want to sync to your server (or create an empty one to download your server files into).
- Open the command palette (
Ctrl+Shift+Pon Windows/Linux,Cmd+Shift+Pon Mac) and runSFTP: config. - A
sftp.jsonfile appears under the.vscodedirectory. - Fill in the values from your FPS.ms server — find them in the Settings tab under SFTP Details. You will also need to set a password if you haven't already. Here is an example config:
.vscode/sftp.json
{
"name": "My Server",
"host": "mango/papaya/pineapple/guava/other.fps.ms",
"protocol": "sftp",
"port": 2022,
"username": "SFTP_USERNAME",
"remotePath": "/",
"uploadOnSave": true,
"useTempFile": false,
"openSsh": false,
"ignore": [".vscode", ".git", ".DS_Store", ".cache", ".local", "?"]
}
password key to the json with the value of your FPS.ms password. Note that this stores your password in plaintext and if syncing is enabled may be synced to the remote server if you don't have the ignore .vscode in your sftp.json. Other subusers can then see it!
Optionally: If you already have files on your server, open the command palette like step 3. but then run SFTP: Sync Both Directions. This will make sure your local folder is in sync with the FPS.ms server.
Optionally: disable uploadOnSave in the sftp.json file. This will then not automatically sync your files to the server if you save them.
For more details, refer to the SFTP extension documentation.
Next steps
- Set up environment variables — manage your bot token securely
- Add slash commands — make your bot interactive
- Upload files via SFTP — transfer files with FileZilla
- Troubleshoot common issues — fix errors and crashes
bbassie
Edited by CanerAkar