10 releases

0.4.3 Aug 19, 2023
0.4.2 Aug 17, 2023
0.4.1 Dec 16, 2022
0.3.3 Aug 5, 2022
0.1.1 Apr 17, 2022

#789 in Game dev

MIT license

78KB
1.5K SLoC

Bevy Discord Presence Plugin

crates.io crates.io Bevy tracking docs.rs

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.4"

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

Dependencies

~22–50MB
~836K SLoC