this repo has no description

chore: Updating atmosphere dev feed matcher

authored by

Nick Gerakines and committed by
GitHub
03949866 8fdeda43

+14 -7
+14 -7
etc/atmosphere_dev.rhai
··· 4 4 return false; 5 5 } 6 6 7 - const SEARCH = [ 7 + const KEYWORDS = [ 8 + ["atproto"], 9 + ["feed", "generator"], 10 + ["pds"], 11 + ["jetstream"], 12 + ["firehose"], 13 + ]; 14 + const TAGS = [ 15 + ["atproto"], 16 + ["feed", "generator"], 17 + ["pds"], 8 18 ["bluesky"], 9 19 ["bsky"], 10 - ["atproto"], 11 20 ["atmosphere"], 12 - ["feed", "generator"], 13 - ["at proto"], 14 - ["pds"], 15 21 ]; 16 22 17 23 const URLS = [ 18 24 "https://atproto.com/", 19 25 "https://github.com/bluesky-social/", 26 + "https://docs.bsky.app/", 20 27 ]; 21 28 22 29 let text = event?.commit?.record?.text ?? ""; 23 30 let text_normalized = text.to_lower(); 24 31 25 - for needle in SEARCH { 32 + for needle in KEYWORDS { 26 33 if sequence_matches(needle, text_normalized) { 27 34 return build_aturi(event); 28 35 } ··· 55 62 "app.bsky.richtext.facet#tag" => { 56 63 let tag = feature?["tag"] ?? ""; 57 64 let tag_normalized = tag.to_lower(); 58 - for needle in SEARCH { 65 + for needle in TAGS { 59 66 if sequence_matches(needle, tag_normalized) { 60 67 return build_aturi(event); 61 68 }