A matrix bot that allows users to add aliases on the homeserver it runs on.
Questions? Ask away in #aliasbot:t2bot.io
- Invite
@alias:t2bot.io
to a room - Give the bot permission to add aliases (configure the room)
- Add your desired alias:
!alias #my_cool_alias
For information on what the bot can do, say !alias help
.
Note: You'll need to have access to an account that the bot can use to get the access token.
- Clone this repository
npm install
npm run build
- Copy
config/default.yaml
toconfig/production.yaml
- Run the bot with
NODE_ENV=production node lib/index.js
# Create the directory structure
# This is all the information kept in the volume: config, logs, and cache
mkdir -p /matrix-alias-bot/config
mkdir -p /matrix-alias-bot/logs
mkdir -p /matrix-alias-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-alias-bot/config/production.yaml
# Run the container
docker run -v /matrix-alias-bot:/data turt2live/matrix-alias-bot