Skip to content
This repository has been archived by the owner on Jan 9, 2022. It is now read-only.

turt2live/matrix-hashtag-bot

Repository files navigation

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

About

A silly matrix bot that creates groups for hashtags

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published