使用 discourse-chat-integration 插件设置 Slack 通知

Thanks for the guide!

Like an earlier poster, I’m hitting these errors:

/discourse failed with the error "dispatch_failed"

image

What might I be missing? I double checked the information that I’ve pasted screenshots of below.

Are there debug logs available for this? I checked Error Logs in Admin, and also sudo ./launcher logs app.

Please let me know what additional info I can provide to help debug this. Thank you!


Oauth scopes:

Slash command params

Verification & Oauth tokens

image

Interactivity settings

image

@stanislaw after you first asked and David responded, I implemented threaded replies, with David’s advice.

That topic shows how to configure it.

2 个赞

@Brad_Wood your suggestions and question sound interesting, so I don’t want them to get lost.

Would you mind moving the first 2 as a new topic in feature and tag it chat-integration, then moving your question to support a d tag it chat-integration too?

This would make it easier to follow/track and not get lost here.

I would have moved the post to a new topic for you, but seeing as you have feature requests and a question in the single post, I’d have to edit and create something new to move it, and I don’t want to do that.

2 个赞

@osioke I have created two new topics as you requested, however it appears I don’t have permissions to add tags.

If you could help me tag these posts or let me know how to tag them, I would appreciate the assistance.

1 个赞

Hi, I was running into this same issue (after following the steps exactly).

The thing that I was missing was enabling the top level chat integration plugin:

Enabling this got the integration to work as expected.

3 个赞

@ililic Thank you! That was it. :man_facepalming:

(Would be good to explicitly add this to the top-level instructions! @david)

Good idea :+1: I added it to the first step in the OP here:

3 个赞

What is the best way to set the bot to send Slack notification for ALL posts/replies in the forum?

Currently it seems that first you have to add all different topics separately and it still doesn’t work if someone posts in the subcategory of those topics.

A really odd thing happens when chat-integration is paired with DiscoTOC - automatic table of contents (cc @Johani)

The headings are now preceded by a link that does NOT go to the heading.

See screenshots below.
The original post

The preview in Slack

Result of clicking on the first link is just the homepage of the forum

2 个赞

我可以在每次有人在 Discourse 上发布新消息时(如果同时添加了特定标签)在我的 Slack 频道中收到通知。
问题:是否可以在向现有 Discourse 主题添加新标签时(假设该主题是之前创建的)触发 Slack 通知?

1 个赞

您好,我们已经设置了集成,并且收到了关于我们支持类别中主题的 Slack 通知 - 但是否也可以每天汇总一次整个论坛的帖子(即,让我们了解活动情况,但不是紧急问题)?

如果您跳过斜杠命令部分,稍后返回添加它,它会提示您重新安装应用程序,这会因为某种原因禁用聊天插件,并导致调度错误。

因此,如果您返回添加斜杠命令,请确保在管理面板中重新添加令牌和基本信息。

我有一个权限问题。
我想只允许我作为 Slack 工作区的拥有者运行 /discourse post 命令。换句话说,我不想让其他用户看到 Discourse Integration App,或者即使他们看到了,我也不想让他们能够运行 /discourse post。这可能吗?

您好 @david 和其他社区成员!

据我所知,似乎我需要为 Discourse 中我想发布到 Slack 的每个子类别单独设置。

换句话说,我不能只指定要发送到 Slack 的总类别,然后期望该类别下的所有子类别都能发送到 Slack。

似乎我需要单独设置每个子类别。这是正确的吗?

理想情况下,我只想选择一个类别发送到 Slack,然后让所有子类别自动成为其中的一部分。

谢谢,
Scott

遇到同样的问题。如何在现有帖子添加标签时收到 Slack 通知?

我认为已经为“tag added to topic”添加了一个过滤器,我认为这应该能达到你想要的效果:

1 个赞

这也不太好用。已经试过了。

1 个赞

该过滤器仅在用户使用该标签创建新帖子时才有效。如果标签被添加到现有主题,则不会触发通知。

1 个赞

嗯。从提交名称来看,它似乎应该在标签更改时触发。 :thinking:

我来看看能找到什么。 :+1: