Code Monkey home page Code Monkey logo

twitter-banner's Introduction

Twitter banner updater

A simple Node script that display profile pictures of new followers on a twitter banner

Dependencies used

  • axios - Used to download remote images
  • dotenv - Used to read Environmental variables
  • twitter-api-client - Used to establish twitter connection
  • sharp - High performance Node.js image processing module,

Hosting

Spruce Emmanuel @sprucekhalifa

twitter-banner's People

Contributors

iamspruce 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

Watchers

 avatar  avatar  avatar

twitter-banner's Issues

ERR_UNHANDLED_REJECTION

So I just wanna test the app, the env is working fine but after running npm start command this error show up

> [email protected] start
> node index.js


(process:32712): VIPS-WARNING **: 21:45:24.868: unable to load "/usr/lib/vips-modules-8.13/vips-openslide.so" -- libopenslide.so.0: cannot open shared object file: No such file or directory

(process:32712): GModule-CRITICAL **: 21:45:24.869: g_module_make_resident: assertion 'module != NULL' failed
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[UnhandledPromiseRejection: 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(). The promise rejected with the reason "#<Object>"

So I think that's a bug on the script or can be anything else ? can you clear it up ? thanks

'Error: Input file is missing'

I got this error:
'Error: Input file is missing'

At:

await sharp('twitter-banner.png')
          .composite(image_data)
          .toFile('new-twitter-banner.png');

And imageData is:
'[{"input":"rforjoe.png","top":380,"left":1050}]'

Error While starting

I tried to run "npm start", but it shows error like this.
Screenshot 2021-12-05 at 12 59 28 PM

How to clear the error?

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.