Fix support channel detection (#513)

* fix support channel detection

* add `/` to `/tag log`

---------

Co-authored-by: maskers <97827489+mskrss@users.noreply.github.com>
This commit is contained in:
maskers 2025-02-17 17:59:55 +03:00 committed by GitHub
parent 66c768279c
commit 5417bdf754
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,7 +21,7 @@ pub async fn handle(ctx: &Context, thread: &GuildChannel) -> Result<()> {
.name(ctx) .name(ctx)
.await .await
.unwrap_or_default() .unwrap_or_default()
!= "support" != "community-support"
{ {
debug!("Not posting onboarding message to threads outside of support"); debug!("Not posting onboarding message to threads outside of support");
return Ok(()); return Ok(());
@ -34,7 +34,7 @@ pub async fn handle(ctx: &Context, thread: &GuildChannel) -> Result<()> {
let msg = format!( let msg = format!(
"<@{}> We've received your support ticket! {} {}", "<@{}> We've received your support ticket! {} {}",
owner, owner,
"Please upload your logs and post the link here if possible (run `tag log` to find out how).", "Please upload your logs and post the link here if possible (run `/tag log` to find out how).",
"Please don't ping people for support questions, unless you have their permission." "Please don't ping people for support questions, unless you have their permission."
); );