/upload with file, or link, and name
- Fork the repository
Click the "Fork" button on GitHub.
- Set up your VPS
Make sure your server has:
- Docker installed
- SSH access enabled
- A directory ready to host the bot (e.g.
~/wolfyzupload)
- Generate an SSH key
Run this locally:
ssh-keygen -t rsa -b 4096 -C "github-deploy"Then:
- Add
~/.ssh/id_rsa.pubto~/.ssh/authorized_keyson your VPS - Add
~/.ssh/id_rsaas a GitHub Action Secret namedVPS_SSH_KEY
- Add GitHub secrets
In your forked repo, go to:
Settings → Secrets and Variables → Actions → New repository secret
Add:
| Name | Value |
|---|---|
VPS_HOST |
Your VPS IP |
VPS_USER |
SSH user (e.g. root) |
VPS_SSH_KEY |
Your SSH private key |
- Push your changes
git add .
git commit -m "Update something"
git push origin mainGitHub will trigger the deploy workflow automatically.
- Copy your bot files via
scp - SSH into the VPS
- Run
docker compose down && docker compose build && docker compose up -d
git clone [email protected]:WolfyzDBois/WolfyzDUpload.git
cd WolfyzDUpload/script
chmod +x deploy.sh stop.sh restart.sh
mv .env.example .env
nano .env # configure the environment
# To edit the list of allowed users: nano user.json
./deploy.shYou can use restart.sh and stop.sh to restart or stop the bot.
-
Clone the repository or download the archive
-
Install dependencies:
npm install- Configure the environment
Copy .env.example to .env, then edit it.
You can also edit user.json to configure allowed user IDs.
- Build the project (if not already built):
npx tsc- Deploy commands (once, or when modifying commands):
node dist/deploy-command.js- Start the bot:
node dist/index.jsSource code is located in the src/ folder.
To run the bot without building (using TypeScript directly):
npx ts-node src/index.tsTo build the bot into the dist/ folder:
npx tsc