Skip to content

Denperidge-Redpencil/Matrix-Bot-Starter-Starter

Repository files navigation

Matrix-Bot-Starter-Starter


A template to get started with matrix-bot-starter!

This template is just a starting off point. For documentation of the matrix-bot-starter, please check out its repository.


Usage

  • Clone the repository.
  • Either enter LOGINNAME & PASSWORD in .env, or generate an access token for your bot user (see t2bot.io/docs/access_tokens/).
  • Rename .env.example to .env and change the values.
  • Run npm install && npm build.
npm run function
start Run build/index.js
dev Run & watch app/index.ts
build Build app/ into build/
start-docker Run the Dockerfile
dev-docker Build & run the Dockerfile
build-docker Copy .env to .env.docker & build the image

Structure

  • app/
    • index.ts: basic boilerplate for the bot client.
  • assets/: Images (and an image script) for use in the README.
  • build/: Made during runtime. Compiled javascript code.
  • .env: Manually made. Environment variables to use when running locally.
  • .env.docker Manually made or generated from .env. Environment variables for use in Docker.

License

This template is in the public domain. Matrix-Bot-Starter is licensed under the MIT License.

About

A template to get started with matrix-bot-starter!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published