A silly matrix bot that prefixes messages with "hyper" if the message is a single noun
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
src
.gitignore
.travis.yml
Dockerfile
LICENSE
README.md
package-lock.json
package.json
tsconfig.json
tslint.json

README.md

matrix-hyper-bot

TravisCI badge

A silly matrix bot that prefixes messages with "hyper" if the message is a single noun

Questions? Ask away in #hyperbot:t2bot.io

This is silly bot that serves no practical purpose. It may be used as a demonstration for how the matrix-bot-sdk could be used, but should not be taken seriously.

Usage

  1. Invite @hyperbot:t2bot.io to your room
  2. Send a message that is a noun, such as matrix

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-hyper-bot/config
mkdir -p /matrix-hyper-bot/logs
mkdir -p /matrix-hyper-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-hyper-bot/config/production.yaml

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