Compare commits

...

2 commits

Author SHA1 Message Date
7745593b91
feat(docker-compose): mount local database for persistence
All checks were successful
Docker CI/CD / Docker Build and Push to Docker Hub (push) Successful in 9m16s
Added a volume to the `matrix-gptbot` service configuration in `docker-compose.yml`, mounting the local `database.db` file into the container. This change enables persistent storage for the bot's data, ensuring that data is not lost when the container is restarted or redeployed. It enhances data management and allows for more robust operation of the bot service by leveraging persistency.

This development is crucial for scenarios requiring data retention across bot updates and system maintenance activities.
2024-04-23 17:08:13 +02:00
ca68ecb282
feat: add trackingmore API and ffmpeg
- Included the `ffmpeg` package in the Docker environment to support multimedia content processing.
- Added `trackingmore-api-tool` as a dependency to expand the bot's functionality with tracking capabilities.
- Adjusted the `all` dependencies list in `pyproject.toml` to include the `trackingmore` module, indicating a broader feature set for the application.
- Updated the bot class to prepare for integrating `TrackingMore` alongside existing services like `OpenAI` and `WolframAlpha`, highlighting an intention to make such integrations configurable in the future.

This enhancement enables the bot to interact with multimedia content more effectively and introduces package tracking features, laying groundwork for configurable service integrations.
2024-04-23 17:07:57 +02:00
4 changed files with 10 additions and 2 deletions

View file

@ -6,7 +6,8 @@ COPY pyproject.toml /app
COPY README.md /app
COPY LICENSE /app
RUN apt update && apt install -y build-essential libpython3-dev
RUN apt update
RUN apt install -y build-essential libpython3-dev ffmpeg
RUN pip install .[all]
RUN pip install 'future==1.0.0'

View file

@ -5,6 +5,7 @@ services:
image: kumitterer/matrix-gptbot
volumes:
- ./config.ini:/app/config.ini
- ./database.db:/app/database.db
pantalaimon:
image: matrixdotorg/pantalaimon

View file

@ -51,8 +51,12 @@ e2ee = [
"pantalaimon>=0.10.5",
]
trackingmore = [
"trackingmore-api-tool",
]
all = [
"matrix-gptbot[openai,wolframalpha,e2ee]",
"matrix-gptbot[openai,wolframalpha,e2ee,trackingmore]",
"geopy",
"beautifulsoup4",
]

View file

@ -60,6 +60,8 @@ from ..migrations import migrate
from ..callbacks import RESPONSE_CALLBACKS, EVENT_CALLBACKS
from ..commands import COMMANDS
from ..tools import TOOLS, Handover, StopProcessing
# TODO: Make these optional based on config
from .openai import OpenAI
from .wolframalpha import WolframAlpha
from .trackingmore import TrackingMore