Shortie is a Node.js application that provides a RESTful API and integrates with a Telegram bot to summarize group chat messages using OpenAI's GPT-4o model.
- RESTful API built with Express.js
- Telegram bot integration for summarizing group chat messages
- MongoDB for storing chat messages
- Docker support for containerization
- Node.js (version 18 or later)
- MongoDB
- Docker (optional, for containerization)
-
Clone the repository:
git clone https://github.com/yourusername/oceanserver.git cd oceanserver
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory and add your environment variables:MONGODB_URI=your_mongodb_uri TELEGRAM_BOT_TOKEN=your_telegram_bot_token OPENAI_API_KEY=your_openai_api_key PORT=3000
-
Start the application:
npm start
- The API is accessible at
http://localhost:3000/api
. - Add the Telegram bot to a group chat to start summarizing messages.
To run the application in a Docker container:
-
Build the Docker image:
docker build -t oceanserver .
-
Run the Docker container:
docker run -p 3000:3000 --env-file .env oceanserver
This project is licensed under the MIT License -