Code Monkey home page Code Monkey logo

imagetosticker's Introduction

THIS REPOSITORY IS OUTDATED AND NOT MAINTAINED AGAIN, ALL THE ISSUES OR PULL REQUESTS WILL BE IGNORED.

Whatsapp Bot - sticker creator

Codefactor

πŸ₯Ÿ Help me!

Saweria

Trakteer

Paypal.me

Features

Sticker Creator Feature
βœ… Send Photo with Caption
βœ… Reply A Photo
βœ… Image Url
βœ… Animated sticker using giphy url
https://bit.ly/3hmgD4R sticker with no background
https://bit.ly/3hmgD4R sticker meme
Downloader Feature
βœ… Tiktok Downloader (No WM & WM)
βœ… Twitter Video Downloader
βœ… Facebook Video Downloader (SD & HD)
βœ… Instagram Video Downloader
Other Feature
βœ… Create Custom meme (top text & bottom text)
βœ… Translate text (quote only)
βœ… check data on the spread of Covid-19 in certain locations
βœ… Check Shipping info (indonesia only)
BETA Anti Spam
Grup Only Feature
βœ… Promote User
βœ… Demote User
βœ… Kick User
βœ… Delete bot message
https://bit.ly/3hmgD4R Mention All User

To-Do

  • Add More Feature
  • More refactoring

Getting Started

This project require NodeJS v12.

Install

Clone this project

> git clone https://github.com/YogaSakti/imageToSticker.git
> cd imageToSticker

Install the dependencies:

> npm install

Usage

  1. run the Whatsapp bot
> npm start

after running it you need to scan the qr

Troubleshooting

Make sure all the necessary dependencies are installed: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

Fix Stuck on linux, install google chrome stable:

> wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
> sudo apt install ./google-chrome-stable_current_amd64.deb

imagetosticker's People

Contributors

dandyraka avatar dependabot[bot] avatar ibnusyawall avatar yaelahan avatar yogasakti 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  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  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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

imagetosticker's Issues

Why isn't it working?

The bot is running but when I send myself or another person sends something to me it doesn't give anything, specifically stickers.

got banned

what should i do if got banned ? must remove some feature ?

Cannot authenticate

Knapa gini terus, pdhl udah scan qr dan berhasil.
Kadang juga gaada tulisan merah tapi loading qr lagi
Screenshot_20200924-110043

Error installingwa-automate

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @open-wa/[email protected].
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'imageToSticker'
npm ERR! notarget

Error on installing

Error:
Something went wrong installing the "sharp" module
Can u pls make a full tutorial video

Fix Instagram downloader

English

Fix the Instagram downloader feature by using api/scraping or npm module which can work on vps from GCP / DO / Vultr / Other providers.

  • Sending media using url parameter (SendFileFromUrl).
  • You are not allowed to save downloaded media videos / photos locally.

Indonesia

Perbaiki fitur Instagram downloader dengan menggunakan api endpoint / scraping atau module npm yang dapat berfungsi di VPS dari GCP / DO / Vultr / Penyedia lainnya.

  • Mengirim media file menggunakan parameter url (SendFileFromUrl).
  • Anda tidak diperbolehkan menyimpan video / foto media yang diunduh secara lokal lalu dikirim dengan fungsi SendFile.

Error tiktok dan twitter

Saat mencoba tiktok donwloader mendapat error

Something went wrong Error: Evaluation failed: Error: InvalidMediaFileType: ExtendableError
    at t.value [as sendToChat] (https://web.whatsapp.com/app2.cbf33baa693d058583d8.js:2:421426)
    at /home/yuzusa/bot/imageToSticker/node_modules/@open-wa/wa-automate/dist/lib/wapi.js:1536:25
    at async /home/yuzusa/bot/imageToSticker/node_modules/@open-wa/wa-automate/dist/lib/wapi.js:1533:16
    at ExecutionContext._evaluateInternal (/home/yuzusa/bot/imageToSticker/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async ExecutionContext.evaluate (/home/yuzusa/bot/imageToSticker/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:106:16)
Caught exception:  Error: Evaluation failed: Error: InvalidMediaFileType: ExtendableError
    at t.value [as sendToChat] (https://web.whatsapp.com/app2.cbf33baa693d058583d8.js:2:421426)
    at /home/yuzusa/bot/imageToSticker/node_modules/@open-wa/wa-automate/dist/lib/wapi.js:1536:25
    at async /home/yuzusa/bot/imageToSticker/node_modules/@open-wa/wa-automate/dist/lib/wapi.js:1533:16
    at ExecutionContext._evaluateInternal (/home/yuzusa/bot/imageToSticker/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async ExecutionContext.evaluate (/home/yuzusa/bot/imageToSticker/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:106:16)

Dan saat mencoba twitter donwloader dapat respon

[EXEC] 13/08 23:43:07 twt (1) from Lara
Get Twitter video metadata....

tetapi tidak muncul result lainnya dan di client juga tidak ada respon hasil dari downloadernya

Something went wrong Error: Protocol error (Runtime.callFunctionOn): Target closed.

Something went wrong Error: Protocol error (Runtime.callFunctionOn): Target closed.
at /root/bot/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:208:63
at new Promise ()
at CDPSession.send (/root/bot/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:207:16)
at ExecutionContext._evaluateInternal (/root/bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:200:50)
at ExecutionContext.evaluate (/root/bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:106:27)
at DOMWorld.evaluate (/root/bot/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:79:24)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Error: Protocol error (Runtime.callFunctionOn): Target closed.
at /root/bot/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:208:63
at new Promise ()
at CDPSession.send (/root/bot/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:207:16)
at ExecutionContext._evaluateInternal (/root/bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:200:50)
at ExecutionContext.evaluate (/root/bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:106:27)
at DOMWorld.evaluate (/root/bot/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:79:24)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)

error when run first time on ubuntu 18.04. some help?

internal/modules/cjs/loader.js:968
throw err;
^

Error: Cannot find module './options'
Require stack:

  • /root/Desktop/novo/imageToSticker/util/index.js
  • /root/Desktop/novo/imageToSticker/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object. (/root/Desktop/novo/imageToSticker/util/index.js:6:19)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at Module.load (internal/modules/cjs/loader.js:985:32)
    at Function.Module._load (internal/modules/cjs/loader.js:878:14)
    at Module.require (internal/modules/cjs/loader.js:1025:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/root/Desktop/novo/imageToSticker/util/index.js',
    '/root/Desktop/novo/imageToSticker/index.js'
    ]
    }
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! [email protected] start: node index.js
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the [email protected] start script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-09-16T12_10_54_403Z-debug.log

pass npm i eror kak waktu yang versi awal lancar2 aja

C:\Users\ztsu>cd imageToSticker

C:\Users\ztsu\imageToSticker>npm i
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see request/request#3142
npm WARN deprecated [email protected]: this library is no longer supported
npm ERR! Unexpected end of JSON input while parsing near '...https://openpgpjs.org'

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ztsu\AppData\Roaming\npm-cache_logs\2020-09-18T04_39_33_529Z-debug.log

ko pas npm install ngga bisa ya ?

pass npm i ada tulisan seperti ini npm WARN tar ENOENT: no such file or directory, open 'C:\bot\imageToSticker-master\node_modules.staging\async-180db98e\internal\Heap.js' itu knp ya ?

Eror code

TypeError: Cannot read property 'trim' of undefined

Meme is not working anymore

After the bot update i get only an Error the format is wrong message. before the update he sends everytime an meme after i write #Meme. Is there now a different command for memes out of random subreddits?

Error ceklokasi Identifier 'data' has already been declared

SyntaxError: Identifier 'data' has already been declared
at wrapSafe (internal/modules/cjs/loader.js:1053:16)
at Module._compile (internal/modules/cjs/loader.js:1101:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (C:\bot\imageToSticker\index.js:4:20)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\apil\AppData\Roaming\npm-cache_logs\2020-09-17T14_51_15_203Z-debug.log

Session is Invalid. Retrying

√ Authenticate to continue
√ Loading QR
√ WAPI Reinjected
Γ— The session is invalid. Retrying

editor

how to i edit teks in bot reply to put my name ? can i use sublime ?

Ig downloader

bang gw nyoba bikin ig downloader pake module instagram-save
bisa download foto/video

codingan gw gini,

        case 'ig':
            if (args.length == 1) {
            client.sendText(from, '*Sedang memproses...*')
            const url = args[0]
            save(`${url}`, './save').then(res => {
                const hasil = (res.file)
                client.sendFile(from, hasil)
            });
            }
            break

KALO RUN INSTAGRAM DOWNLOADER BOTNYA MATI(ERROR)

Ini gimana ya bang, kalo gini, kalo pake ig downloader botnya langsung error{mati}

Capure

Get Instagram video metadata....
undefined:1

^

SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at Request._callback (C:\Users\RELFAIZ\imageToSticker\node_modules\video-url-link\lib\instagram\index.js:17:31)
at Request.self.callback (C:\Users\RELFAIZ\imageToSticker\node_modules\request\request.js:185:22)
at Request.emit (events.js:315:20)
at Request.EventEmitter.emit (domain.js:483:12)
at Request. (C:\Users\RELFAIZ\imageToSticker\node_modules\request\request.js:1154:10)
at Request.emit (events.js:315:20)
at Request.EventEmitter.emit (domain.js:483:12)
at Gunzip. (C:\Users\RELFAIZ\imageToSticker\node_modules\request\request.js:1076:12)
at Object.onceWrapper (events.js:421:28)
at Gunzip.emit (events.js:327:22)
at Gunzip.EventEmitter.emit (domain.js:483:12)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\RELFAIZ\AppData\Roaming\npm-cache_logs\2020-09-10T14_50_57_601Z-debug.log

padahal semuanya udah install

mohon bantuannya bang!!!

ini no wa saya kalo mau jelasin di wa
0812-1908-7237
wa.me/6281219087237

NYANGKUT

Kalau stuck di auth itu gmn ya?

cara atasin lag?

bang, gimana caranya ngatasin lag parah setelah beberapa waktu ngerun? contoh kalo abis buat ambil stiker / kirim gambar / video, tibaΒ² aja lag parah. ngga tau kenapa, tapi untuk sendmedia aja lag nya, kalo sendtext masih lancar. tapi itu lag nya parah sampe harus reboot vps dulu bang. ada pencerahan?

TUTORIAL

Bang cara update nya itu gimana?

Bug

Kenapa code qr nya gak muncul ya?bagaimana cara atasinya

running

apakah bisa run lewat termux bang?

Ga bisa bikin web server di repl.it

Gw mau hosting bot di Repl.it terus mau dibuat online 24/7.
Gw bikin aja kan web server make http module di index.js

const http = require('http')
const server = http.createServer((req, res) => {
  res.writeHead(200)
  res.end('ok')
})
server.listen(3000)

Pas gw run, malah gak kebikin web servernya, belum jadi .co.
image

Yang salah apa yak?
index.js:

const { create, Client } = require('@open-wa/wa-automate')
const { color } = require('./utils')
const options = require('./utils/options')
const msgHandler = require('./handler/message')

const start = (client = new Client()) => {
    console.log('[DEV]', color('Slavyan', 'orange'))
    console.log('[CLIENT] Bot is now online!')

    // Force it to keep the current session
    client.onStateChanged((state) => {
        console.log('[Client State]', state)
        if (state === 'CONFLICT') client.forceRefocus()
    })

    // Listening on message
    client.onMessage((message) => {
        client.getAmountOfLoadedMessages() // Cut message Cache if cache more than 3K
            .then((msg) => {
                if (msg >= 3000) {
                    console.log('[CLIENT]', color(`Loaded message reach ${msg}, cuting message cache...`, 'yellow'))
                    client.cutMsgCache()
                }
            })
        // Message handler
        msgHandler(client, message)
    })

    // Listen group invitation
    client.onAddedToGroup(({ groupMetadata: { id }, contact: { name } }) =>
        client.getGroupMembersId(id)
            .then((ids) => {
                console.log('[CLIENT]', color(`Invited to Group. [ ${name} : ${ids.length}]`, 'yellow'))
            }))

    client.onRemovedFromGroup((data) => {
        console.log(data)
    })
}

create('Slavyan', options(true, start))
    .then((client) => start(client))
    .catch((err) => new Error(err))

const http = require('http')
const server = http.createServer((req, res) => {
  res.writeHead(200);
  res.end('ok')
})
server.listen(3000)

Bug

mas maaf eror di download twitter sama download tiktok

#tiktok command error

Caught exception: Error: Evaluation failed: Error: InvalidMediaFileType: ExtendableError at t.value [as sendToChat] (https://web.whatsapp.com/app2.bd99e00dba1790b9096f.js:2:423105) at /home/test/node_modules/@open-wa/wa-automate/dist/lib/wapi.js:1536:25 at async /home/test/node_modules/@open-wa/wa-automate/dist/lib/wapi.js:1533:16 at ExecutionContext._evaluateInternal (/home/test/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19) at process._tickCallback (internal/process/next_tick.js:68:7)

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.