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
pip install stellar-api-core
How to Use
Create an index.py (or main.py) file and paste the following code:
from stellar_api_core import StellarBot
bot = StellarBot({
'discordToken': 'YOUR_BOT_TOKEN_HERE',
'serverId': '123456789012345678',
'channelId': '987654321098765432',
'adminIds': ['YOUR_DISCORD_USER_ID'],
'apiUrl': 'https://your-stellar-api.railway.app'
})
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