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
Add this to your Cargo.toml
:
[dependencies]
bevy-discord-presence = "0.5"
or run:
cargo add bevy-discord-presence
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.
See CHANGELOG.md
See CONTRIBUTING.md