An open API service indexing awesome lists of open source software.

https://github.com/ganchdev/holidays-bot

🤖
https://github.com/ganchdev/holidays-bot

Last synced: 3 months ago
JSON representation

🤖

Awesome Lists containing this project

README

          

# Holidays Telegram Slop Bot

A Telegram bot with DeepSeek-powered natural language interface for hotel booking management.

## Features

- Natural language queries for room availability and bookings
- Create and update bookings via conversation
- Guest search and booking history
- Bulgarian language (default) with conversation memory
- Secure login via web verification + token authentication
- HTML formatted responses

## Setup

```bash
cp .env.example .env
# Edit .env with your tokens
bundle install
```

## Environment Variables

| Variable | Description |
|----------|-------------|
| `TELEGRAM_BOT_TOKEN` | Telegram bot token from @BotFather |
| `DEEPSEEK_API_KEY` | DeepSeek API key |
| `RAILS_API_URL` | Rails API URL (default: http://localhost:3000) |

## Running

```bash
bundle exec ruby bot.rb
```

## Docker

```bash
docker-compose up --build
```

## Commands

| Command | Description |
|---------|-------------|
| `/start` | Start bot, clear conversation |
| `/login` | Log in with email |
| `/logout` | Log out, clear conversation |
| `/help` | Show help |

## Login Flow

1. `/login` → enter email address
2. Bot shows link to verification page
3. Open link in browser → if logged in, see the 6-digit code
4. Enter code in Telegram → logged in with API token

## Tech Stack

- Ruby 3.3
- telegram-bot-ruby
- DeepSeek API (function calling)
- SQLite (session storage)
- Rails API (booking data)