# DiscourseからDiscordボットへの連携は可能ですか？

**URL:** https://meta.discourse.org/t/discourse-to-discord-bot-possible/183537
**Category:** Support
**Created:** [2021 年 3 月 17 日午後 2:04 UTC](https://meta.discourse.org/t/discourse-to-discord-bot-possible/183537 "2021-03-17T14:04:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DiscourseUser](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@DiscourseUser](https://meta.discourse.org/u/DiscourseUser)
#### Post date: [2021 年 3 月 17 日午後 2:04 UTC](https://meta.discourse.org/t/discourse-to-discord-bot-possible/183537/1 "2021-03-17T14:04:33Z")

</div>

こんにちは。Discourseフォーラムで新たに作成されたスレッドを自動的にリンクするDiscordボットの設定は可能でしょうか？できれば、特定のカテゴリのスレッドのみをリンクするものが理想です。すでにそのようなボットは存在しますか？

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2021 年 3 月 17 日午後 2:17 UTC](https://meta.discourse.org/t/discourse-to-discord-bot-possible/183537/2 "2021-03-17T14:17:31Z")

</div>

これですぐに近づけることができます：

> [@Discord Bot Construction Kit robot](https://meta.discourse.org/t/discord-bot-run-one-on-your-discourse-server-keep-things-in-sync/122530):
>
> Purpose of this plugin This plugin does several things: Allows you to power a Discord bot using your Discourse server to do stuff to link the two systems. Fork this repo and expand it with simple Ruby to create all kinds of bot functionality. Existing functionality to serve as examples and useful utility: Provides some two-way auto posting of content that meet some criteria. Command to copy messages ad hoc to Discourse Command to sync group membership to role membership of your Discor…

特に、私が最近追加した以下のものが、すでにあなたの要件に完全に合致する可能性があります。

> [@Discord Bot Construction Kit robot](https://meta.discourse.org/t/discord-bot-run-one-on-your-discourse-server-keep-things-in-sync/122530/79?u=merefield):
>
> OK I’ve developed the plugin a little further now and have POC for two way communication working: Here are the new settings You can designate an Announcements Channel on Discord in the plugin settings. You can now type into the assigned Discord Announcements Channel and this will post your message to your assigned Discourse Topic in the plugin settings You can set up a list of Categories in Discourse to post to the Announcements channel on your Discord if someone Posts there …

必要に応じてフォークして拡張してください。

---

<div class="post-metadata">

### Author: ![DiscourseUser](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@DiscourseUser](https://meta.discourse.org/u/DiscourseUser)
#### Post date: [2021 年 3 月 17 日午後 2:21 UTC](https://meta.discourse.org/t/discourse-to-discord-bot-possible/183537/3 "2021-03-17T14:21:06Z")

</div>

なるほど、少し複雑すぎますね。Discourse と Discord サーバー間でメンバーを同期する必要はありません。特定のカテゴリを「監視」し、そのカテゴリに新しいスレッドが作成されると、それを Discord チャンネルにリンクするだけのシンプルなボットで十分です。

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2021 年 3 月 17 日午後 2:21 UTC](https://meta.discourse.org/t/discourse-to-discord-bot-possible/183537/4 "2021-03-17T14:21:32Z")

</div>

同期は完全にオプションです。現在はボットコマンドで同期が開始されます。不要な場合は、そのコマンドを実行しなければよいだけです。

> [@DiscourseUser](#):
>
> 単に特定のカテゴリを「監視」し、そのカテゴリ内の新しいスレッドを Discord チャンネルにリンクさせるボットです

まさにその通りです。2 つ目のリンクをご覧になりましたか？

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/c/5cf01946d6d8d9b76700eca6226fb92bf0e2a5e3.png)

よりシンプルな解決策を実装してみるのも自由ですよ 😃 ただし、おそらくあなたの要件は満たされていると思います。

---

<div class="post-metadata">

### Author: ![Yuun](https://avatars.discourse-cdn.com/v4/letter/y/977dab/32.png) [@Yuun](https://meta.discourse.org/u/Yuun)
#### Post date: [2021 年 3 月 17 日午後 2:35 UTC](https://meta.discourse.org/t/discourse-to-discord-bot-possible/183537/5 "2021-03-17T14:35:57Z")

</div>

必要に応じて、公式のチャットルーム統合プラグインも役立つ可能性があります：

> [@Discourse Chat Integration](https://meta.discourse.org/t/chatroom-integration-plugin-discourse-chat-integration/66522):
>
> information_source Chat Integration is for using an external chat system together with Discourse — you may be looking for [Discourse Chat](https://meta.discourse.org/t/discourse-chat/230881) which adds Chat functionality directly to Discourse. discourse2Summary Discourse Chat Integration allows you to integrate your chat system of choice with Discourse.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Features discourse-chat-integration allows sendi…

以前、あなたが求めている機能に設定したことがあり、非常に簡単だったと記憶しています。
