A simple bot that keeps your Matrix room's dynamic topic up to date.
Questions? Ask away in #topicbot:t2bot.io
- Invite
@topic:t2bot.io
to a room - Give the bot permission to edit your topic (usually requires moderator privileges)
- Set your topic template and variables:
!topic template member_count
- Set your desired room topic:
!topic set My first room with $RESULT people!
- The bot will keep your topic up to date!
For information on the available templates, type !topic templates
or !topic help
for more information.
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
- Copy
config/default.yaml
toconfig/production.yaml
- Edit the values of
config/production.yaml
andconfig/database.json
to match your needs - Run the bot with
NODE_ENV=production node index.js