https://github.com/automa/bot-typescript
Starter kit for TypeScript bot for Automa
https://github.com/automa/bot-typescript
automa automa-bot bot template
Last synced: 6 months ago
JSON representation
Starter kit for TypeScript bot for Automa
- Host: GitHub
- URL: https://github.com/automa/bot-typescript
- Owner: automa
- Created: 2025-06-02T04:21:44.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-10-29T15:17:07.000Z (8 months ago)
- Last Synced: 2025-10-29T17:26:21.848Z (8 months ago)
- Topics: automa, automa-bot, bot, template
- Language: TypeScript
- Homepage: https://docs.automa.app/bot-development
- Size: 32.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bot-typescript
Starter kit for TypeScript bot for Automa
Please read the [Bot Development](https://docs.automa.app/bot-development) docs to understand how an [Automa][automa] bot works and how to develop it.
- `/automa` endpoint is the receiver for the webhook from [Automa][automa]
- `update` function in `src/update.ts` is the logic responsible for updating code.
- `AUTOMA_WEBHOOK_SECRET` environment variable is available to be set instead of hard-coding it.
### Production
Start the app in production mode:
```sh
pnpm build
NODE_ENV=production pnpm start
```
Needs [git](https://git-scm.org) to be installed on production.
### Development
Start the app in development mode:
```sh
pnpm dev
pnpm start # In separate tab
```
### Testing
Run tests with:
```sh
pnpm build
pnpm test
```
### Stack
- Uses [fastify](https://fastify.io/) as a server.
[automa]: https://automa.app