bevy-discord-presence

Crates.iobevy-discord-presence
lib.rsbevy-discord-presence
version0.4.3
sourcesrc
created_at2022-04-17 05:56:42.43429
updated_at2023-08-19 01:45:15.197917
descriptionDiscord presence plugin for the Bevy game engine
homepage
repositoryhttps://github.com/jewlexx/discord-presence.git
max_upload_size
id569308
size59,283
Juliette Cordor (jewlexx)

documentation

README

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

Commit count: 511

cargo fmt