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

#595 in Game dev

Download history 15/week @ 2024-02-15 17/week @ 2024-02-22 2/week @ 2024-02-29 98/week @ 2024-03-28

98 downloads per month

MIT license

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

~19–52MB
~804K SLoC