A small/simple Matrix bot to acquire the MXC URI for media.
Questions? Ask away in #mediabot:t2bot.io
- Invite @mediabot:t2bot.io to your room
- Upload an image
Note: You'll need to have an access token for an account the bot may use.
- Clone this repository
npm installnpm run build- Copy
config/default.yamltoconfig/production.yamland edit accordingly - Run the bot with
NODE_ENV=prodiction node lib/index.js
# Create the directory structure for the bot's volume
mkdir -p /matrix-media-bot/config
mkdir -p /matrix-media-bot/logs
mkdir -p /matrix-media-bot/storage
# Create the configuration file. Use the default configuration as a template.
# Logs will automatically be enabled, and the dataPath will be ignored.
nano /matrix-media-bot/config/production.yaml
# Run the container
docker run -v /matrix-media-bot:/data turt2live/matrix-media-bot