# Gitter integration for Discourse

**URL:** https://meta.discourse.org/t/gitter-integration-for-discourse/65881
**Category:** Development
**Created:** [09.Июль.2017 07:51:29 UTC](https://meta.discourse.org/t/gitter-integration-for-discourse/65881 "2017-07-09T07:51:29Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![jafeth.diazc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jafeth.diazc/32/101197_2.png) [@jafeth.diazc](https://meta.discourse.org/u/jafeth.diazc)
#### Post date: [11.Октябрь.2017 05:08:47 UTC](https://meta.discourse.org/t/gitter-integration-for-discourse/65881/7 "2017-10-11T05:08:47Z")

</div>

Unfortunately, I’m not being able to find time to keep working on the Gitter integration’s development at most for a couple of months more. Here is an update of the current state of the plugin.

The main task in process is the refactoring of `discourse-chat-gitter` into `discourse-chat-integration`. So far, the notifications feature is already integrated (for more info, visit [Set up Gitter notifications using the discourse-chat-integration plugin](https://meta.discourse.org/t/set-up-gitter-notifications-using-the-discourse-chat-integration-plugin/69220)).

The other two features Slash Commands and Transcripts are still to be refactored, but that will happen after having handled a few potential issues found. Those are consequence of the way the Gitter integration implements Slash Commands (due to the lack of an official API for that) which is through a long-running thread to listen to a room’s messages. The issues are:

- In multi-site installations where multiple discourse sites share the same server process only one of the threads is going to start.
- In the case of a distributed Discourse forum, a new thread would be created in each server, so one forum is gonna end up with multiple connections to Gitter.

The considered approach for handling them involves creating a rake task and using a template like

> <https://github.com/discourse/discourse_docker/blob/master/templates/redis.template.yml#L2-L8>

to run the rake task as a polling demon for Gitter.

Finally, if any questions, I’d happily answer them asap 🙂

---

_[View the full topic](https://meta.discourse.org/t/gitter-integration-for-discourse/65881)._
