Giter VIP home page Giter VIP logo

synchtubebot's Introduction

SynchtubeBot

Bot for (now defunct) Synchtube using PhantomJS and suitable for running on a Raspberry Pi. While other bots required some kind of integration with Synchtube servers, this bot was fully client-side and required no server interaction. And now it's worthless since Synchtube is dead ;_;7 This repo was set up in the unlikely event that the site or some clone comes back.

It basically sat in a room and accepted commands such as setting up games (one game -- a turn based battle game), translating some text, or some other useless things. It could also check the playlist for dead videos. Planned features included mod powers, more games, shell execution, stat tracking, and other fun stuff.

Most of the usage details are in the info block of STbot.js, but you needed to install PhantomJS or PyPhantomJS to run the script. Also, the daemons need to be running in the background to access those features.

On a Raspberry Pi, you would install PyPhantomJS since there's an available (albeit old) package in the Raspian package repo: sudo apt-get install python-pyphantomjs

I never figured out how to get the real PhantomJS to compile on a Raspberry Pi.

To run headless via SSH without X running, you needed to install xvfb and run with: sudo apt-get install xvfb

And to actually run the bot, you would have needed to use the command: xvfb-run pyphantomjs STbot.js [name of room]

*nix only: To use the external features like translation and dead video checking, you would have needed to run the daemons since PhantomJS is somewhat limited and sandboxed: (./daemon) &

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.