315bf2413a1067687e99c3a50adfeaec3d7dc975
wauto 🤖
A WhatsApp bot built with TypeScript, Baileys, and Sharp.
Features
!ping- Responds with pong!time- Current time in WIB (Asia/Jakarta)!echo <text>- Echoes your message!sticker/!stiker/!s- Converts sent or quoted image/video/sticker into a WhatsApp sticker!help- Displays command list
Local Development
-
Install dependencies:
npm install -
Run in development mode (with auto-reload):
npm run dev -
Build and run production build:
npm run build npm start
CI / CD with Gitea Actions
The repository includes automated CI/CD configured in .gitea/workflows/ci-cd.yaml:
-
CI (Continuous Integration):
- Triggers on every
pushandpull_requesttargetingmain. - Runs
npm ciandnpm run build(TypeScript compilation & type checking).
- Triggers on every
-
CD (Continuous Delivery):
- Triggers on
pushtomainand version tags (v*). - Builds a production-ready, multi-stage Docker container.
- Pushes the image to the Gitea Container Registry:
git.hrkm.my.id/hira/wauto:latest
- Triggers on
Authentication for Gitea Actions Runner
The workflow uses ${{ secrets.GITEA_TOKEN || secrets.GITHUB_TOKEN }}.
- If your Gitea instance has Actions package permissions enabled,
${{ secrets.GITHUB_TOKEN }}works automatically. - Alternatively, you can add a repository secret named
GITEA_TOKENwith a Personal Access Token (read:package,write:package).
Deployment with Docker Compose
Deploy the bot on your server using the included docker-compose.yml:
-
Log in to Gitea Container Registry on your server:
docker login git.hrkm.my.id -
Pull and start the container:
docker compose pull docker compose up -d -
Scan the WhatsApp QR code to link your account:
docker compose logs -f
Important
: The
./authdirectory is mounted into/app/authinside the container so your session login credentials persist across container restarts and updates.
Languages
TypeScript
91.4%
Dockerfile
8.6%