Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.42 KB

README.rst

File metadata and controls

47 lines (31 loc) · 1.42 KB

tda-api Helper Bot

A bot that listens on tda-api server traffic and chimes in whenever it feels a user is asking a frequently-asked question.

How does it work?

It listens on incoming messages and matches them against a configured list of trigger prompts. When one of those prompts triggers, it responds to the message with a (hopefully) helpful link to the appropriate FAQ page. It avoids showing the same message to users over and over again by maintaining a database of the messages each user has triggered.

How do I deploy it?

This bot is packaged as a docker container. I use an M1 MacBook, the Dockerfile builds an image using the arm64v8 version of Alpine Linux. This also happens to be suitable for deployment to a Raspberry Pi 4B.

To deploy, first build the docker container:

Create the volume on which you'll store the state DB:

Initialize the state:

Start the bot: