Code Monkey home page Code Monkey logo

what-song-is-this's Introduction

what-song-is-this

Twitter bot to find what song is playing in a given uploaded twitter video.

How to setup.

yarn install

How to run.

  • via npm script
yarn start
  • via node in terminal
node --experimental-wasm-threads src/app.js

This bot makes use of the wasm ffmpeg package for converting between multimedia types. Running webassembly with threads on node js requires the experimental-wasm-threads flag when starting.

Testing

yarn test

Test files should be created with '.test.js' prefix.

How it works

  • A twitter user would tag the bot under a video with @whatsongishere
  • The bot running in a loop(cron job) would listen for its mentions.
  • For any mention found, it checks firstly for if it has attended to this mention before. If it has, it ignores the mention
  • If it hasn't attended to this mention before, it checks the DB if it has been mentioned on that song before. If it has, it uses the same response from before.
  • If it hasn't been mentioned to the video before, it converts the video to the required format and makes a request to the Rapi API's shazam API to recognize it.
  • Depending on the response from shazam(or whatever service integrated) it replies the at with the relevant reply.

whatsongishere-in-action

Currently receiving contributions for Hacktoberfest. PRs are not limited to the issues created.

what-song-is-this's People

Contributors

bolubee101 avatar zubs avatar xavier577 avatar

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.