# Creating bot on discourse

**URL:** https://meta.discourse.org/t/creating-bot-on-discourse/224822
**Category:** Development
**Created:** [April 20, 2022, 7:52am UTC](https://meta.discourse.org/t/creating-bot-on-discourse/224822 "2022-04-20T07:52:10Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [April 20, 2022, 8:21am UTC](https://meta.discourse.org/t/creating-bot-on-discourse/224822/2 "2022-04-20T08:21:04Z")

</div>

You are going to need a plugin.

Take a look at my Frotz plugin as an example/starting point

> [@Discourse Frotz mage](https://meta.discourse.org/t/discourse-frotz-an-interactive-fiction-game-bot/140617):
>
> Wooah, a new plugin! tada This one is a little less serious, though. video_gameDiscourse Frotz [[image] ](https://global.discourse-cdn.com/meta/original/3X/4/7/477f2c8c14006fa019eea94d4ba9bd95b7259412.png) It’s no longer necessary to @ mention the bot every step of the way. Once in play, just reply to it. Git repo: [GitHub - merefield/discourse-frotz: A plugin that uses Frotz to give you an interactive fiction experience on your Discourse forum · GitHub](https://github.com/merefield/discourse-frotz)What is it It’s a ‘bot’ with which to play interactive fiction aka classic text adventure …

API only plugins like this tend to be more stable over time so don’t worry about instability. All code requires maintenance in any case. I’ve done minimal changes to Frotz-bot over time.

Take a look at my Discord bot plugin to see how you can write code against events like new posts:

> [@Discord Bot Construction Kit robot](https://meta.discourse.org/t/discord-bot-construction-kit/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…

Your needs might be met by:

> [@Discourse Automation](https://meta.discourse.org/t/discourse-automation/195773):
>
> discourse2Summary Discourse Automation lets you automate actions through scripts and triggers. Customisation is made through an automatically generated UI.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Features Easy automation of complex workflows Triggers automations at specific dates, periodically, or on specific events Provides automatically generated UIs…

If you want more control over the code’s destiny, maintain a fork/repo yourself.

---

_[View the full topic](https://meta.discourse.org/t/creating-bot-on-discourse/224822)._
