Coder Social home page Coder Social logo

csgocat's Introduction

csgocat

Keep your CSGO team informed what's playing

Contributions

Thanks to chxrlt for writing all of the mpris and xdotool code!

Usage

  1. Install Linux, I recommend Ubuntu
  2. Install xdotool, sudo apt install xdotool on Ubuntu, sudo pacman -S xdotool on Arch
  3. Change USER_JUKEBOX in main.py to either Jukebox.Rhytmbox or Jukebox.Spotify
  4. Enable the console in CSGO and get into a game
  5. Run main.py and quickly tab back into your game, it will give you a 5 second head start
  6. When a song is about to change, stand still and let it type into your game

How it works

It uses mpris to determine the current song playing in either Rhythmbox or Spotify, a hash of the title and the artist is stored in /tmp/songhash and every second the current song is polled and compared against the cached hash. If the song has changed then xdotool will open the CSGO console and type say Now playing: TITLE by ARTIST. Before a song changes make sure you are standing still or you may type bad input into the console!

Disclaimer

CSGO is a multiplayer video game with an anti-cheat. Like all applications that interact with the game it may lead to a "cheat detection" and get you banned. This IS NOT a cheat but it is always unknown what will trigger anti-cheat. Run this tool AT YOUR OWN RISK and I am not responsible for any action as a result of using this tool.

csgocat's People

Stargazers

 avatar

Watchers

 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.