# Anti domination bot

**URL:** <https://meta.discourse.org/t/anti-domination-bot/103802>\
**Category:** Development\
**Created:** [9 בדצמבר,‏ 2018,‏ 1:11am UTC](https://meta.discourse.org/t/anti-domination-bot/103802 "2018-12-09T01:11:46Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)\
**Post date:** [9 בדצמבר,‏ 2018,‏ 1:11am UTC](https://meta.discourse.org/t/anti-domination-bot/103802/1 "2018-12-09T01:11:46Z")

</div>

First experiment with the Discourse API: a bot which discourages users from dominating a category.

This is already proving useful in our [opt-in Politics category](https://se23.life/groups/general_politics) on one of my Discourse forums.

I’m new to Discourse API development, so feedback and PRs appreciated 👍

[https://github.com/chrisbeach/anti-domination-bot](https://github.com/chrisbeach/anti-domination-bot)

[![Screenshot](https://global.discourse-cdn.com/meta/original/3X/2/3/23163cd4ebf128fe62e596ea29cd20de9e31128c.jpeg)](https://github.com/chrisbeach/anti-domination-bot/blob/master/doc/forum-screenshot.png)

### Configuration

Customise [src/main/resources/application.conf.sample](https://github.com/chrisbeach/anti-domination-bot/blob/master/src/main/resources/application.conf.sample) and save as `src/main/resources/application.conf`

See comments in file for instructions

### Running with Docker

```plaintext
docker run -t \
    -v /path/to/your/application.conf:/root/src/main/resources/application.conf \
    chrisbeach/anti-domination-bot

```

NOTE: `/path/to/your/application.conf` is the location of your customised application.conf file and must be specified as an absolute path.

### Running (Development)

NOTE: Requires [SBT](https://www.scala-sbt.org/)

```plaintext
sbt run

```

---

_[View the full topic](https://meta.discourse.org/t/anti-domination-bot/103802)._
