Metadata-Version: 2.4
Name: stellar-api-core
Version: 1.0.0
Summary: The official ultra-powerful API wrapper for building Nakama Discord Bots instantly.
Home-page: https://github.com/Kuro0975
Author: kur0125
Author-email: example@example.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: discord.py>=2.3.0
Requires-Dist: aiohttp>=3.8.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Stellar API Core (Python)

The official, ultra-powerful API wrapper for building Nakama Discord Bots instantly in Python.
**Architecture designed & engineered by @kur0125.**

## Features
- **13 Lines of Code**: You can get a complete bot running with almost no programming experience.
- **Dynamic Admin Panel**: It automatically creates an interactive dropdown panel in your server when new users link their tokens.
- **Channel Auto-Cleaner**: Keeps your chat clean by automatically deleting old messages in the bot's channel.
- **Autonomous Refreshing**: Handles Nakama token refresh cycles in the background, ensuring tokens don't expire.
- **Webhook Integration**: Includes automatic webhook logging so you can easily track user activity.

## Installation

```bash
pip install stellar-api-core
```

## How to Use

Create an `index.py` (or `main.py`) file and paste the following code:

```python
from stellar_api_core import StellarBot

bot = StellarBot({
    # Your Discord Bot Token (from Discord Developer Portal)
    'discordToken': 'YOUR_BOT_TOKEN_HERE',
    
    # The ID of the server where the bot will run
    'serverId': '123456789012345678',
    
    # The specific channel where the bot will spawn the panel and delete messages
    'channelId': '987654321098765432',
    
    # An array of Discord User IDs who are allowed to use the Dropdown panel
    'adminIds': ['YOUR_DISCORD_USER_ID'],
    
    # Provided by the Stellar API owner
    'apiUrl': 'https://your-stellar-api.railway.app' 
})

# Starts the bot!
bot.start()
```

## Commands Included Automatically:
- `/add`: Users can securely link their `token` and `refresh_token`.
- `/refresh`: Users can manually force a refresh and download their new `token.json`.
- `/delete`: Users can permanently wipe their token data from the server.

---
*Powered by Stellar API | @kur0125*
