A bot that listens on tda-api server traffic and chimes in whenever it feels a user is asking a frequently-asked question.
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.
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: