# Discovering mention in the plugins

**URL:** https://meta.discourse.org/t/discovering-mention-in-the-plugins/40659
**Category:** Development
**Created:** [6. März 2016 um 21:24 UTC](https://meta.discourse.org/t/discovering-mention-in-the-plugins/40659 "2016-03-06T21:24:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mkucharz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mkucharz/32/51716_2.png) [@mkucharz](https://meta.discourse.org/u/mkucharz)
#### Post date: [6. März 2016 um 21:24 UTC](https://meta.discourse.org/t/discovering-mention-in-the-plugins/40659/1 "2016-03-06T21:24:14Z")

</div>

I’m working on tight integration between Slack and Discourse. For now I want to extend slack notification plugin with functionality of sending special notification after mention. Can someone suggest me the right way of getting this info in a plugin? For now, I see that I can search for it in the content of the post, but maybe this is not the optimal way?

Best,

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [8. März 2016 um 09:44 UTC](https://meta.discourse.org/t/discovering-mention-in-the-plugins/40659/2 "2016-03-08T09:44:39Z")

</div>

Could you break down what you’re trying to do into steps? I’m not quite getting _what’s_ supposed to be sent _where_.

Maybe @bernd or @night have grappled with this already.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [8. März 2016 um 10:30 UTC](https://meta.discourse.org/t/discovering-mention-in-the-plugins/40659/3 "2016-03-08T10:30:53Z")

</div>

Something like?

```plaintext
class ::Notification
   after_save :notify_slack

   def notify_slack
      # do your magic
   end
end 

```
