matrix-hyper-bot
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
- Invite @hyperbot:t2bot.io to your room
- 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.
- Clone this repository
npm install
npm run build
- Copy
config/default.yaml
toconfig/production.yaml
and edit accordingly - 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