Skip to content

Commit

Permalink
added is_league_world flag
Browse files Browse the repository at this point in the history
  • Loading branch information
fatfingers23 committed Oct 13, 2023
1 parent 4ef8d72 commit 6f2dd34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions trackscape-discord-api/src/controllers/chat_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ async fn new_clan_chats(
continue;
}

if chat.is_league_world.is_some() {
if chat.is_league_world.unwrap() {
info!("Broadcast from League World")
}
}
//Checks to make sure the message has not already been process since multiple people could be submitting them
let message_content_hash = hash_string(chat.message.clone());
match cache.get_value(message_content_hash.clone()).await {
Expand Down
1 change: 1 addition & 0 deletions trackscape-discord-shared/src/osrs_broadcast_extractor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub mod osrs_broadcast_extractor {
// BOUNTY_HUNTER_EMBLEM(20),
// LEAGUE(22);
pub icon_id: Option<i64>,
pub is_league_world: Option<bool>,
}

#[derive(Clone, Debug, Serialize, Deserialize)]
Expand Down

0 comments on commit 6f2dd34

Please sign in to comment.