Metadata-Version: 2.4
Name: discord-trad-bot
Version: 0.1.0
Summary: A Discord bot that automatically translates messages in specified channels
Author-email: Pierre Tsia <pierre.tsiakkaros@gmail.com>
License-Expression: MIT
Requires-Python: >=3.8
Requires-Dist: aiosqlite==0.19.0
Requires-Dist: discord-py==2.3.2
Requires-Dist: googletrans==4.0.0-rc1
Requires-Dist: python-dotenv==1.0.0
Requires-Dist: sqlalchemy==2.0.23
Description-Content-Type: text/markdown

# Discord Translation Bot

A Discord bot that automatically translates messages in a designated channel to each user's preferred language while maintaining Discord's rich formatting.

## Features

- Automatic translation of messages in a designated channel
- User language preferences
- Preserves Discord formatting (emojis, mentions, etc.)
- Free to use (uses Google Translate API free tier)

## Setup

1. Clone this repository
2. Create a virtual environment:
   ```
   python -m venv venv
   source venv/bin/activate  # On Windows: venv\Scripts\activate
   ```
3. Install dependencies:
   ```
   pip install -r requirements.txt
   ```
4. Create a `.env` file with your Discord bot token and Google Translate API key
5. Run the bot:
   ```
   python src/main.py
   ```

## Configuration

Create a `.env` file with the following variables:
```
DISCORD_TOKEN=your_discord_bot_token
GOOGLE_TRANSLATE_API_KEY=your_google_translate_api_key
```

## Commands

### User Commands
- `!setlang <language_code>` - Set preferred language
- `!mylang` - Show current language setting
- `!languages` - List available languages

### Admin Commands
- `!settranschannel <channel>` - Set translation channel
- `!transstatus` - Show bot status and usage
