Skip to content
A small/simple Matrix bot to acquire the MXC URI for media
Branch: master
Clone or download
Latest commit b939feb Feb 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Proof of concept Oct 27, 2018
src Autojoin upgraded rooms Feb 10, 2019
.dockerignore Proof of concept Oct 27, 2018
.gitignore Proof of concept Oct 27, 2018
.travis.yml Proof of concept Oct 27, 2018
Dockerfile Proof of concept Oct 27, 2018
LICENSE Initial commit Oct 27, 2018
README.md Proof of concept Oct 27, 2018
package-lock.json Autojoin upgraded rooms Feb 10, 2019
package.json Autojoin upgraded rooms Feb 10, 2019
tsconfig.json Proof of concept Oct 27, 2018
tslint.json Proof of concept Oct 27, 2018

README.md

matrix-media-bot

TravisCI badge

A small/simple Matrix bot to acquire the MXC URI for media.

Questions? Ask away in #mediabot:t2bot.io

Usage

  1. Invite @mediabot:t2bot.io to your room
  2. Upload an image

Building your own

Note: You'll need to have an access token for an account the bot may use.

  1. Clone this repository
  2. npm install
  3. npm run build
  4. Copy config/default.yaml to config/production.yaml and edit accordingly
  5. Run the bot with NODE_ENV=prodiction node lib/index.js

Docker

# 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
You can’t perform that action at this time.