support_onboard: check if bot has already joined thread
This commit is contained in:
parent
915ef54dc3
commit
cd1e3220c7
3 changed files with 32 additions and 5 deletions
|
@ -28,7 +28,10 @@ const ETA_MESSAGES: [&str; 16] = [
|
|||
|
||||
pub async fn handle(ctx: &Context, message: &Message) -> Result<()> {
|
||||
if !ETA_REGEX.is_match(&message.content) {
|
||||
trace!("The message '{}' (probably) doesn't say ETA", message.content);
|
||||
trace!(
|
||||
"The message '{}' (probably) doesn't say ETA",
|
||||
message.content
|
||||
);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue