Skip to content

Commit

Permalink
Also add link to unknown commands on manual trigger (atting triagebot…
Browse files Browse the repository at this point in the history
… on a group chat, instead of just on DMs)
  • Loading branch information
blyxyas committed May 23, 2024
1 parent c0c7674 commit 7703e34
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/zulip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,19 @@ fn handle_command<'a>(
.map_err(|e| format_err!("Failed to await at this time: {e:?}"))
}
Some("docs-update") => return trigger_docs_update(message_data),
_ => {}
_ => {
return Ok(Some(
String::from(
"Unknown command, check triagebot's documentation at <https://forge.rust-lang.org/triagebot/index.html#common-command-summary>"
)
))
}
}
}
next = words.next();
}

Ok(Some(String::from("Unknown command, check triagebot's documentation at <https://forge.rust-lang.org/triagebot/notifications.html>")))
Ok(Some(String::from("Unknown command, check triagebot's notifications documentation at <https://forge.rust-lang.org/triagebot/notifications.html>")))
}
}
})
Expand Down

0 comments on commit 7703e34

Please sign in to comment.