Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Latest commit

 

History

History
56 lines (38 loc) · 1.84 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.84 KB

Bevy Discord Presence Plugin

crates.io crates.io Following released Bevy versionsdocs.rs

Warning

This project has been archived, as I do not have the time or motivation to maintain it currently. The currently released version should continue to work for the foreseeable future, but will inevitably be broken by a future Bevy update. The underlying discord-presence library is still under active development, you are welcome to use this repo as a reference for integrating it into your own Bevy app, or fork it, but I will not continue updating this plugin for the ever changing Bevy ecosystem.

A simplistic bevy plugin for discord presence integration within the bevy game engine

Installation

Add this to your Cargo.toml:

[dependencies]
bevy-discord-presence = "0.5"

or run:

cargo add bevy-discord-presence

Example

use bevy::prelude::*;

use bevy_discord_presence::config::{RPCConfig, RPCPlugin};

fn main() {
    println!("hello world!");
    let mut app = App::new();
    app.add_plugins(DefaultPlugins);
    app.add_plugin(RPCPlugin(RPCConfig {
        app_id: 965125975941709834,
        show_time: true,
    }));

    app.run();
}

More examples can be found in the examples directory.

Changelog

See CHANGELOG.md

Contributions

See CONTRIBUTING.md