GithubHelp home page GithubHelp logo

kaiserdj / stickerworld Goto Github PK

View Code? Open in Web Editor NEW
47.0 47.0 26.0 791 KB

Bot for whatsapp that automatically generates Sticker from the images or videos it receives

License: Apache License 2.0

JavaScript 100.00%
bot stickers whatsapp whatsapp-bot

stickerworld's People

Contributors

allcontributors[bot] avatar kaiserdj avatar simone7121 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

stickerworld's Issues

Exclude groups from bot

Hello, can i exclude the groups from the bot ?
If not, it can be a future enhancement.
Greetings from italy 🧿

BUG CLIENT SEND STICKER

When I send a sticker to the sticker bot, the bot replies " ⚙️ Generating Sticker ⚙️"
Untitled

Bot not working after the recent whatsapp update... maybe an issue with the whatsapp web backend

[09/07/2021 21:18:34] info: Config Stickerworld: {"lang":"en","cleanTemp":true,"headless":true,"debug":false,"consoleAnimations":true,"cleanSession":true,"workInGroups":true,"activeCommand":true,"customActiveCommand":["!Sticker","!sticker"],"onIncomingCall":true,"maxSizeVideo":20,"notifyRejectionStickerGeneration":true,"notifyUrlNotDetected":false,"options":{"ImgToSticker":true,"ImgUrlToSticker":true,"GifToSticker":true,"VideoToSticker":true,"VideoUrlToSticker":true}}
[09/07/2021 21:18:34] info: Cleaning Temp folder
[09/07/2021 21:18:34] info: Temp folder cleaned
[09/07/2021 21:18:35] info: Version check completed
[09/07/2021 21:18:41] info: Status Session: notLogged
[09/07/2021 21:18:41] info: Session name: session
[09/07/2021 21:18:41] info: Number of attempts to read the qrcode:
[09/07/2021 21:18:45] info: Status Session: qrReadSuccess
[09/07/2021 21:18:45] info: Session name: session

This is the log file

can't run on other os

image_2021-01-18_193202

please make it for linux / ubuntu I like the bot but it can't be run on my debian based vps

How this works?

Installed the package and all its dependencies.

Run the script with npm run start

A QR code appears, which is scanned with WhatsApp to link the device.

The console displays ✓ [instance: session]: Connected´

A picture was sent to the number linked. In addition, I sent it with the !Sticker text, but nothing happened.

Is there something I'm doing wrong?

how to add auto reply

I need my contact information if the bot has encountered an error people can contact me
as an example;
Hi
Hi too

Hola! Tengo 2 problemas :/

Cuando quiero darle al npm start me sale este error :

Something went wrong installing the "sharp" module

The specified procedure could not be found.
\?\C:\Users\administrator\sticker\node_modules\sharp\build\Release\sharp.node..

Que puedo hacer? Estoy usando NodeJS 16.13.0 64 BITS

Larger GIFs and videos break the bot

Basically large GIFs and videos are breaking the bot. I'm running in a Linux server that is completely vanilla. I've already tried moving to a new server and resizing the virtual server, but haven't had any luck.

What are the steps to reproduce this issue?

  1. Send a large (>150kb) gif or video
  2. Bot sends "Generating Sticker"

What happens?

Bot never answer, sometimes breaks in the backend

What were you expecting to happen?

Bot sends sticker

Any logs, error output, screenshots etc?

Error: Evaluation failed: s
    at ExecutionContext._evaluateInternal (/root/Stickerworld/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async ExecutionContext.evaluate (/root/Stickerworld/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:106:16)

Any other comments?

@Viniuau Originally reported in issue #39

What versions of software are you using?

Operating System and Versión: Ubuntu 18.04

Node Version (node -v): 16.3.0

Stickerworld Version: 2.1.1 running in PM2

error when scanning the qr code

info: [session:client] Auto close configured to 60s
Error: Evaluation failed: TypeError: Cannot read property 'default' of undefined
at Object.window.WAPI.window.WAPI.restartService (C:\Users\miteb\OneDrive\Escritorio!!!\Stickerworld-master\node_modules\venom-bot\dist\lib\wapi\wapi.js:1:57963)
at puppeteer_evaluation_script:1:28
at ExecutionContext._evaluateInternal (C:\Users\miteb\OneDrive\Escritorio!!!\Stickerworld-master\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:217:19)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async ExecutionContext.evaluate (C:\Users\miteb\OneDrive\Escritorio!!!\Stickerworld-master\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:106:16)

Error while installling

(Thanks for reporting an issue! Please make sure you click the link above to view the issue guidelines, then fill out the blanks below.)

What are the steps to reproduce this issue?

  1. cloned the repo.
  2. ran npm i
  3. ran npm start
    What happens?
    All the dependencies are installed correctly but an error is encountered while starting the program.
    error:
Unable to load the sleep module (no animations available)
C:\Users\Akash Rajoria\Desktop\Coding\Stickerworld\node_modules\sharp\lib\constructor.js:32
  throw new Error(error);
  ^

Error:
Something went wrong installing the "sharp" module

What were you expecting to happen?
The program starts normally.

how to fix it?

npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/BlackGlory/node-fet
ch.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2021-06-02T1
6_33_59_684Z-debug.log

the sticker is accelerating

I would like to thank you for the robot I liked it very much
I have a problem, the sticker is accelerating +
Hope you added rights to the sticker and auto responder
And thank you for your great effort

Hello I am having Error: spawn UNKNOWN, look the image! Please help me, I'm windows 10 32bits

(node:4340) UnhandledPromiseRejectionWarning: Error: spawn UNKNOWN
at ChildProcess.spawn (internal/child_process.js:403:11)
at spawn (child_process.js:553:9)
at C:\Users\franc\Stickerworld\node_modules\fluent-ffmpeg\lib\ffprobe.js:155:21
at FfmpegCommand.proto._getFfprobePath (C:\Users\franc\Stickerworld\node_modules\fluent-ffmpeg\lib\capabilities.js:144:14)
at FfmpegCommand.proto.ffprobe (C:\Users\franc\Stickerworld\node_modules\fluent-ffmpeg\lib\ffprobe.js:141:10)
at Function.FfmpegCommand.ffprobe (C:\Users\franc\Stickerworld\node_modules\fluent-ffmpeg\lib\fluent-ffmpeg.js:221:20)
at C:\Users\franc\Stickerworld\lib\ffmpeg.js:87:17
at new Promise ()
at Object.ffprobe (C:\Users\franc\Stickerworld\lib\ffmpeg.js:86:12)
at Video. (C:\Users\franc\Stickerworld\lib\video.js:14:42)
(Use node --trace-warnings ... to show where the warning was created)
(node:4340) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:4340) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

image

stop bot from creating a sticker from a sticker

so whenever a user sends a sticker in the group, the bot tries to generate a sticker for it.
it doesn't actually create a sticker from a sticker, but just that its bothersome
is there a way to stop it trying to create a sticker from a sticker?

Gif Sticker and Block Contacts

Hello I'm from Brazil.

1 ° I would like to know why the animated figures (gif) are a little accelerated?

2 ° And also, you can put an automatic block system for calls.

Thanks in advance.

P.S .: I really like your work, and I hope you keep bringing us updates.
I started studying programming after seeing your project.

suggestion.

You could add names for package and creator. I think it would be a differentiator.

Screenshot_20201206-222133840_1.jpg

I can't understand how send images to the bot

the log:

> [email protected] start /home/macunaima/codes/Stickerworld
> node index

info: [session] Initializing browser wss...
Chrome not found, using chromium
info: [session] Browser successfully opened
info: [session] checking headless...
info: [session] headless option is active, browser hidden
info: [session] Checking page...
info: [session] Page successfully accessed

and after read the QR code:

✓ [instance: session]: Connected
Session started
[0d187518e9756caffd545b2a154dae6c] New group message: group-name, for user: user-number
[0d187518e9756caffd545b2a154dae6c] Url no detected

What is the number for the bot?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.