🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

stellar-api-core

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stellar-api-core

The official ultra-powerful API wrapper for building Nakama Discord Bots instantly.

pipPyPI
Version
1.0.0
Weekly downloads
228
Maintainers
1

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 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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts