Skip to content

Commit

Permalink
Add documentation link on unknown commands
Browse files Browse the repository at this point in the history
Also add link to unknown commands on manual trigger (atting triagebot on a group chat, instead of just on DMs)
  • Loading branch information
blyxyas committed May 23, 2024
1 parent 5626c87 commit 85a6af7
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")))
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 85a6af7

Please sign in to comment.