Skip to content
Can be used to help produce new editions of This Week in Matrix
TypeScript
Branch: master
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.
.gitignore
package-lock.json
package.json
ping.ts
readme.md
render.ts
tsconfig.json
watch.ts

readme.md

twim-o-matic

Can be used to help produce new editions of https://matrix.org/twim.

Install everything from npm and setup needed dirs:

npm i
mkdir events
mkdir config

To use, create a file at config/access_token.json and include three fields:

  • accessToken
  • homeserver
  • userId

Then build from TypeScript (sourcemap used for debugging):

npx tsc --watch *.ts --sourcemap

Run node watch.js, then use your nominated mxid to react "👀" on a story to include. This will start logging event IDs.

When you have a collection, edit eventsFile in render.ts, then run the resulting js: node render.js.

This will write some markdown to out.md, which will need some editing to make it presentable.

You can’t perform that action at this time.