Skip to content

Install Matrix Bot

shayaantx edited this page Jun 27, 2023 · 8 revisions

Prerequisites

  • A matrix server (google how to set one up)
  • A matrix admin user (at very least a user who can create other users)

Important

Setup

  1. Setting up a matrix bot is pretty simple, create a user/password in matrix (google how to do this)
  2. Invite the bot user to the rooms you want the bot to interact in
  3. Get the room id (launch element web in the browser and navigate to the room and get the id from the url
https://app.element.io/#/room/<room-id>
  1. Turn off rate limiting for the bot user (otherwise you are going to get rate limited pretty quickly)
insert into ratelimit_override values ('<user-id-here>', 0, 0);

Configuration

  1. In the properties configuration fill in the below 4 properties
matrix-username=<username>
matrix-password=<password>
# actual room id(s), not room alias or room display name
matrix-room=<room-ids>
matrix-home-server-url=<home-server-url>
  1. You can start botdarr and see your bot appear in the members list. You should be able to run commands now (botdarr is going to automatically join the channel if you invited the bot user to the channel)
Clone this wiki locally