fixes bug causing bot to announce races for any game with names starting with smr

main
Joey Pollack 2 years ago
parent a9b32a6a0a
commit 1ba704d122

@ -38,7 +38,7 @@ pub async fn poll_races(ctx: Arc<Context>)
{
//println!("\tGame: {}\n\tCategory: {}", race["category"]["name"], race["goal"]["name"]);
let key = race["name"].to_string().strip_prefix("\"").unwrap().to_string();
if key.starts_with("sm/") || key.starts_with("smr")
if key.starts_with("sm/") || key.starts_with("smr/")
{
let race = Race::from_json(race);
if !races.contains_key(&key)

Loading…
Cancel
Save