The official ultra-powerful API wrapper for building Nakama Discord Bots instantly.
Project description
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({
# 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 theirtokenandrefresh_token./refresh: Users can manually force a refresh and download their newtoken.json./delete: Users can permanently wipe their token data from the server.
Powered by Stellar API | @kur0125
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stellar_api_core-1.0.0.tar.gz.
File metadata
- Download URL: stellar_api_core-1.0.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9564c30f534b378496fdead8da2c114ffab83faa354007f0ba17648fba4eb1c8
|
|
| MD5 |
441833207ff4dd2fc43629c6ad7f0129
|
|
| BLAKE2b-256 |
d0d8acc655dc2da09327939b15623a90cf49f477e9c4eb4199820a370ef08d3e
|
File details
Details for the file stellar_api_core-1.0.0-py3-none-any.whl.
File metadata
- Download URL: stellar_api_core-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0722fc52d8728d76b34ec0e9f94f3930a088cd4dacb0ab97a36f0e1b07e34df
|
|
| MD5 |
80cb68479427b2bd20a38a54dc7acf20
|
|
| BLAKE2b-256 |
94f5dca86747b3ea80136b0965861139dba51387663df926fe5781b204413387
|