# the docs

welcome to the docs. I post documentation stuff for my bots here.

Kaga

{% content-ref url="/pages/-LWNm69SPFSI8nsVxbrs" %}
[info](/kaga/info)
{% endcontent-ref %}

Matchpost

{% content-ref url="/pages/-LWNgJlVTogngbX16PvX" %}
[info](/matchpost/info)
{% endcontent-ref %}


# info

a simple Reddit UHC match posting bot.

you probably need this if you're the owner of a Reddit UHC server. here it is, take it.

{% content-ref url="/pages/-LWNga9Bv3wd3oIlud0-" %}
[setup](/matchpost/setup)
{% endcontent-ref %}


# setup

gotta start somewhere, no?

setup is relatively simple:

* invite the bot to the server.
* use the `postchannel` command to set the channel for the match posts. Matchpost will *not* post if there is no channel set.
* add your server(s) with the `addserv[er]` command.

Matchpost will post matches **15 minutes** before they start, according to [the calendar](https://hosts.uhc.gg/) (and whatever time is set on the match post).


# documentation

See how things work.

{% hint style="info" %}
the default prefix for Matchpost is `m!`. it can be changed using the `prefix` command.
{% endhint %}

| Command         | Description                                                                                                                         | Usage                                             |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| help            | replies with an embed listing all the commands that can be used. add the *\[command]* parameter to get help for a specific command. | `help [command]`                                  |
| postchannel     | sets the channel that Matchpost will send matches to.                                                                               | `postchannel <channel>`                           |
| servers         | lists the servers that will be matchposted on the discord server.                                                                   | `servers`                                         |
| addserv\[er]    | <p>adds a server for the bot to post.</p><p><em><strong>note</strong>: use the server ip or domain, obviously.</em></p>             | `addserv[er] <server ip>`                         |
| removeserv\[er] | removes the specified server from the post list. If the server does not exist, it won’t be removed.                                 | <p><code>removeserv\[er] \<server></code><br></p> |
| prefix          | change Matchpost's server prefix.                                                                                                   | `prefix <prefix>`                                 |


# info

A side project to help me practice JavaScript in a fun, useful way.

This documentation will be empty for a while, as I am re-coding Reika (known now as Kaga) completely using [Klasa](https://github.com/dirigeants/klasa).

Once the re-code is ready to be released, the invite link will be here, as well as an updated documentation.


