stellar-api-core
v1.0.7
Published
The official Stellar API wrapper for Nakama token management bots.
Readme
Stellar API
The official, ultra-powerful API wrapper for building Nakama Discord Bots instantly. 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
npm install stellar-api-coreHow to Use
Create an index.js file and paste the following code:
const StellarBot = require('stellar-api-core');
const bot = new 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://stellarapi-backend-production.up.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
