Giter VIP home page Giter VIP logo

xbox360_presence's Introduction

RGH Xbox 360 Discord Rich Presence Script

(Fork for a stupid addition that is barely shown and probably only benefits me idk) example

Please note this script as well as this readme was written by ChatGPT.

Tested and checked by a human.

This script updates your Discord Rich Presence with the currently playing game on your modded Xbox 360 running the Aurora dashboard with the Nova plugin.

Features

  • Displays the current game being played.
  • Shows the elapsed playtime in a human-readable format.
  • Updates every 15 seconds.
  • Handles special cases for unknown games and the Aurora dashboard.
  • Uses custom images for games when available.

Requirements

  • A modded Xbox 360 running the Aurora dashboard with the Nova plugin active.
  • Your own Discord Application Client ID.
  • Python 3.x installed on your computer.
  • requests and pypresence Python libraries.

Installation

  1. Clone the repository:

    git clone https://github.com/jnackmclain/Xbox360_presence.git
    cd Xbox360_presence
  2. Install the required Python libraries:

    pip install requests pypresence

Discord Application Client ID

Sign into the Discord Developer Portal.

Create a new Application and name it. The name will show up in the rich presence. I like using Xbox 360 Hardware.

client_id_general

Copy your application client id.

client_id

Configuration

  1. Rename config_default.ini to config.ini which will have the following content:

    [discord]
    client_id = YOUR_CLIENT_ID_HERE
    
    [xbox]
    ip_address = YOUR_XBOX_IP_HERE
  2. Update the client id with the application id we got earlier

  3. Update the ip_address with the IP address of your Xbox 360

   [discord]
   client_id = 12345678910

   [xbox]
   ip_address = 192.168.0.36

Usage

You can run the script with or without providing the IP address of your Xbox as an argument.

Option 1: Run the script with no arguments and the IP address in the config.ini will be used

Option 2: Override the config.ini IP address as a command-line argument

python rich_presence.py 192.168.0.69

Notes

  • Ensure your Xbox 360 is powered on and connected to the same network as your computer.
  • The Nova Web UI must be running on the Xbox for the script to work correctly.

Example Output

When running, the script will update your Discord status to show the game you're playing along with the elapsed time:

example

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

xbox360_presence's People

Contributors

jnackmclain avatar gonakillya avatar zanesix 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.