2.0 KiB
2.0 KiB
Matrix Bot
A Matrix bot that helps manage TODOs, track expenses, monitor bank accounts, save links, and interact with AI services - all while storing data in org-mode files.
Features
-
TODO Management: Create and track TODOs with different categories
!todo
- Regular todos!repeat
- Repeating tasks!next
- Next actions!waiting
- Waiting for items!someday
- Future tasks!proj
- Project tasks
-
Task Lists: View your daily plan
!list free
- Personal tasks!list work
- Work-related tasks
-
Financial Tracking:
!bofa
- Check Bank of America account status
-
Link Management:
- Auto-saves any shared URL to an org-mode file
-
AI Integration:
- Chat with GPT-4 (continues conversation)
!reset
- Reset chat history!dalle
- Generate images using DALL-E
Setup
- Install dependencies using Poetry:
poetry install
- Create a
.env
file with the following variables:
# Matrix Configuration
MATRIX_URL=
MATRIX_USER=
MATRIX_PASSWORD=
MATRIX_USERNAME=
MATRIX_USERNAMES=
# File Locations
EXPENSES_FILENAME=
ORG_LOCATION=
ORG_CAPTURE_FILENAME=
ORG_PLAN_FILENAME=
ORG_LINKS_FILENAME=
# API Keys
OPEN_AI_API_KEY=
- Run the bot:
python bot.py
Requirements
- Python 3.9+
- Poetry for dependency management
- Matrix server access
- Optional: Bank accounts with BROU and Itau for banking features
- Optional: OpenAI API key for AI features
Project Structure
bot.py
: Main bot implementation with command handlersbofa.py
: Bank of America data processingorg.py
: Org-mode file managementsettings.py
: Environment configuration
Dependencies
Key dependencies include:
simplematrixbotlib
: Matrix bot frameworkorgparse
: Org-mode file parsingopenai
: GPT-4 and DALL-E integrationpyexcel-ods3
: Spreadsheet processingrequests
: API interactions