A silly matrix bot that creates groups for hashtags
Branch: master
Clone or download
Latest commit 9ec0bd6 Feb 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Initial proof of concept Aug 23, 2018
src Autojoin upgraded rooms Feb 10, 2019
.dockerignore Add dockerfile, ci config, and readme Aug 22, 2018
.gitignore Add dockerfile, ci config, and readme Aug 22, 2018
.travis.yml Add dockerfile, ci config, and readme Aug 22, 2018
Dockerfile
LICENSE Initial commit Aug 22, 2018
README.md Add sillyness statement Aug 31, 2018
package-lock.json Autojoin upgraded rooms Feb 10, 2019
package.json Autojoin upgraded rooms Feb 10, 2019
tsconfig.json Initial proof of concept Aug 23, 2018
tslint.json

README.md

matrix-hashtag-bot

TravisCI badge

When a hashtag is mentioned, this bot creates a Matrix group.

Questions? Ask away in #hashtagbot:t2bot.io

This is a silly bot, and a absurd usage of the groups API. Using it for #serious #business is discouraged.

Usage

  1. Invite @hashtag:t2bot.io to a room
  2. Send a message like #sillybots

Building your own

Note: You'll need to have access to an account that the bot can use to get the access token.

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

Docker

# Create the directory structure
# This is all the information kept in the volume: config, logs, and cache
mkdir -p /matrix-hashtag-bot/config
mkdir -p /matrix-hashtag-bot/logs
mkdir -p /matrix-hashtag-bot/storage

# Create the configuration file. Use the default configration as a template.
# Be sure to change the log path to /data/logs
# Be sure to point the dataPath at /data/storage
nano /matrix-hashtag-bot/config/production.yaml

# Run the container
docker run -v /matrix-hashtag-bot:/data turt2live/matrix-hashtag-bot