einhornbot is a utility bot, based on matrix-bot-sdk, we use for moderation of our 2 chats, Regenbogenchat and Queerchat
- A user-account on the homeserver for the bot to use
- A valid access token for said user (for example obtainable via Element in the Account settings)
- Important: Do not log out with the user after obtaining that access token, otherwise it will be invalid.
- Disable Rate-Limit for that user via the admin API
- Copy config.sample.ts to config.ts
- Adjust necessary settings, as described in the sample configuration
- run ./build.sh
- Start the bot with ./run.sh
In your command channel, send in the command you want to use. See Commands for a list of valid commands and what they do.
Commands are all prefixed with !
. Arguments in <>
are required arguments
Displays all available commands
Sets the required power level for sending messages and sending reactions to lockLevel
for the rooms specified in lockRoomInclude
in your config.
Sets the required power level for sending messages and sending reactions to 0 for the rooms in lockRoomInclude
in your config.
Invites <user>
into the rooms specified in inviteRoomInclude
in your config. <user>
must be the username, without server or symbols (for @aurora:queer-lexikon.net
the <user>
would be aurora
, for example). This command uses servername
from the config.
Deactivates a given <user>
.
Re-aktivates a given <user>
.
Shows the e-mail address of the given <user>
.
Check whois and devices of user to calculate the lastseen of the given user
Sets the given <user>
to server admin
Sets the given <user>
to room admin in the rooms defined in roomAdminRoomInclude
in the config.