Skip to content

MateriiApps/mai

Repository files navigation

mai

the cutest materii bot

This is a specialized bot for the Materii discord so you likely will find no purpose for it.

Running

Docker

This handles automatically updating as well.
Prebuilt images are for linux/amd64, linux/arm64/v8

$ git clone https://github.com/MateriiApps/mai-docker
$ cd mai-docker
$ ./up.sh

Manually

$ git clone https://github.com/MateriiApps/mai
$ npm i -g pnpm # pnpm better
$ pnpm i
# Set all env vars
$ export xxx=yyy
$ pnpm start

Config

name type description
DISCORD_TOKEN string Discord bot token
GITHUB_TOKEN string Readonly Github PAT for fetching MateriiApps info
OWNERS Snowflake[] User id list separated by comma
ANDROIDX_CHANNEL Snowflake Channel id for sending androidx release changelogs in
ANDROIDX_ROLE Snowflake Role id to mention with the aforementioned changelogs
AGE_REQUIREMENT string Account age requirement to not be kicked. ex. 2d
LOG_LEVEL LogLevel String key of LogLevel