Skip to content

Commit

Permalink
Enchantment: Cleaner presence, new build
Browse files Browse the repository at this point in the history
  • Loading branch information
MixeroTN committed Aug 3, 2023
1 parent bb6fd4e commit 8156c48
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Compiler output is not needed on GitHub
/target
/test

# Prevent leaking .config file that contains .ROBLOSECURITY
**/stateye.config
**/stateye.config
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ async fn main() {
println!("Place Info: {:?}", place_info);
println!("Place Icon URL: {:?}", place_icon_url);

utils::set_activity(&mut roblox_player, "Playing", place_info.name.as_str(), place_icon_url.as_str(), resources::ROBLOX_ICON_URL, vec![
//utils::set_activity(&mut roblox_player, "Playing", place_info.name.as_str(), place_icon_url.as_str(), resources::ROBLOX_ICON_URL, vec![
utils::set_activity(&mut roblox_player, "", place_info.name.as_str(), place_icon_url.as_str(), "", vec![
discord_rich_presence::activity::Button::new("Game Page", place_info.url.as_str())
], start_timestamp as i64);
}
Expand Down
10 changes: 5 additions & 5 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ pub fn get_config() -> Config {
// Default configuration in case file cannot be found
let mut config = Config {
token: String::new(),
website: true,
website: false,
player: true,
studio: true
studio: false
};

// Read the config file
Expand Down Expand Up @@ -133,9 +133,9 @@ pub fn set_activity(
assets = assets.large_image(big_icon_url);
}

if !small_icon_url.is_empty() {
assets = assets.small_image(small_icon_url);
}
//if !small_icon_url.is_empty() {
//assets = assets.small_image(small_icon_url);
//}

activity = activity.state(state);

Expand Down
Binary file added stateye.exe
Binary file not shown.

0 comments on commit 8156c48

Please # to comment.