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

#612 in Game dev

Download history 5/week @ 2024-02-14 26/week @ 2024-02-21 3/week @ 2024-02-28 55/week @ 2024-03-27 64/week @ 2024-04-03

119 downloads per month

MIT license

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

~20–52MB
~800K SLoC