Skip to content

Commit

Permalink
Set Watching activity type
Browse files Browse the repository at this point in the history
  • Loading branch information
BrutuZ committed Oct 5, 2024
1 parent d5bfdb7 commit 3e0e299
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Release

on:
workflow_dispatch:
release:
types: [created]

Expand All @@ -15,7 +16,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: "aarch64-unknown-linux-gnu, x86_64-unknown-linux-musl"
targets: 'aarch64-unknown-linux-gnu, x86_64-unknown-linux-musl'

- name: Build amd64
run: cargo build --release
Expand Down Expand Up @@ -88,7 +89,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: "aarch64-apple-darwin, x86_64-apple-darwin"
targets: 'aarch64-apple-darwin, x86_64-apple-darwin'

- name: Build darwin
run: cargo build --release --target=x86_64-apple-darwin
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "discrakt"
version = "2.2.3"
version = "2.2.4"
edition = "2021"
authors = ["afonsojramos"]
description = "Easy to Use Trakt/Plex Discord Rich Presence"
Expand All @@ -11,7 +11,7 @@ readme = "README.md"
exclude = [".github/*", "images/*.psd", "credentials.ini", ".gitignore"]

[dependencies]
discord-rich-presence = "0.2.4"
discord-rich-presence = "0.2.5"
ureq = { version = "2.10.1", features = ["json"] }
configparser = { version = "3.1.0", features = ["indexmap"] }
serde = { version = "1.0.208", features = ["derive"] }
Expand Down
3 changes: 2 additions & 1 deletion src/discord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ impl Discord {
.buttons(vec![
Button::new("IMDB", &payload_data.link_imdb),
Button::new("Trakt", &payload_data.link_trakt),
]);
])
.activity_type(discord_rich_presence::activity::ActivityType::Watching);

log(&format!(
"{} - {} | {}",
Expand Down

0 comments on commit 3e0e299

Please sign in to comment.