# Discourse Chatbot 🤖

**URL:** https://meta.discourse.org/t/discourse-chatbot/256652
**Category:** Plugin
**Tags:** ai
**Created:** [March 1, 2023, 11:08am UTC](https://meta.discourse.org/t/discourse-chatbot/256652 "2023-03-01T11:08:25Z")
**Posts on this page:** 1
**Showing post:** 971

<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: [October 6, 2024, 7:44am UTC](https://meta.discourse.org/t/discourse-chatbot/256652/971 "2024-10-06T07:44:50Z")

</div>

Here you go:

> [@Insertable, centrally maintained text/markdown snippets](https://meta.discourse.org/t/insertable-centrally-maintained-text-markdown-snippets/97246/2):
>
> One possible option is to use a theme component. This goes in header.html \<script type="text/discourse-plugin" version="0.8"\> var disclaimer = settings.Disclaimer\_text, disclaimer\_selector = 'div[data-theme="disclaimer"]'; $.fn.disclaimer = function() { if (!this.length) { return; } else { this.each(function() { $(this).html(disclaimer); }); return this; } }; api.decorateCooked($elem =\> $elem.children(disclaimer\_selector).disclaimer()); // create composer butto…

---

_[View the full topic](https://meta.discourse.org/t/discourse-chatbot/256652)._
