This is a simple project to create stickers for WhatsApp using whatsapp-web.js. It's free and easy to use.
- Clone the repo
git clone [email protected]:Stroik/sticker-dude.git
- Go to the project folder
cd sticker-dude
- Install dependencies
npm install
oryarn install
orpnpm install
- Set up your environment variables
cp .env.example .env
or just rename.env.example
to.env
- DATABASE_URL: This project uses Prisma to manage the database. The example is using a sqlite database, but you can use any database supported by Prisma.
- WEB_PATH: This path should be pointing to the based chromium browser executable. You can choose between Chrome, Brave, Edge, Opera, etc.
- FFMPEG_PATH: Ffmpeg is used to convert any image, gif or video to sticker. It's used by whatsapp-web.js to convert the media to a sticker. You can download it from here.
- Run
npx prisma db push
to create the database schema. - Run
npm run dev
oryarn dev
orpnpm dev
to start the development server. - Check the terminal to see the QR link. The url base is https://quickchart.io/
- Click on the link and scan the QR code with a phone/emulator
- The terminal should show a message like
=== STICKER-DUDE IS READY ===
It's pretty simple. You have to send some image, gif or video to the sticker-dude and it will send you back a sticker. You can also send a sticker to the bot and it will send you back the same sticker.