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

#912 in Game dev

Download history 1/week @ 2024-12-11 7/week @ 2025-02-05 28/week @ 2025-02-12 22/week @ 2025-02-26

57 downloads per month

MIT license

82KB
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

~24–56MB
~871K SLoC