Botajs Manager - VSCode Extension
Manage your Botajs bots and commands directly in Visual Studio Code.
Features
- Login with API Key: Securely authenticate with your Botajs account
- View Your Bots: Browse all your bots in the sidebar
- Edit Commands: View and edit bot command code with syntax highlighting
- Auto-sync: Changes are automatically synced to Botajs API
- Multiple Platforms: Support for Telegram and WhatsApp bots
Installation
- Install the extension from the VSCode Marketplace
- Click on the Botajs icon in the Activity Bar
- Click "Login" and enter your API key from the Botajs Manager app
Usage
Getting Started
- Login: Click the login button in the Botajs sidebar and enter your API key
- Select a Bot: Click on any bot in the "My Bots" panel to view its commands
- Edit Commands: Click on a command to open it in the editor
- Save Changes: Press
Ctrl+S (or Cmd+S on Mac) to save and sync changes
Features Overview
My Bots Panel
- View all your bots
- See platform (Telegram/WhatsApp) and language
- Click to view bot commands
Bot Commands Panel
- Lists all commands for the selected bot
- Shows which commands have code vs. simple text answers
- Click to edit command code
Code Editor
- Full syntax highlighting for JavaScript
- Auto-save support
- Direct sync to Botajs API
- Base64 encoding handled automatically
Requirements
- VSCode version 1.85.0 or higher
- Active Botajs account with API key
- Internet connection for API access
Extension Settings
This extension stores your API key securely using VSCode's Secret Storage API.
Known Issues
None at this time. Please report issues at: GitHub Issues
Release Notes
0.1.0
Initial release:
- Login/logout functionality
- View bots and commands
- Edit command code
- Auto-sync to Botajs API
API Integration
This extension connects to the Botajs API at https://api.botajs.top/web/api
Endpoints Used
GET /me - Verify API key and get user info
GET /bots - List all bots
GET /bots/{id}/commands - Get bot commands
POST /bots/{id}/commands - Update command code
Privacy
Your API key is stored securely using VSCode's encrypted Secret Storage. No data is sent to any third parties.
Support
For support, please contact:
License
MIT License - See LICENSE file for details
Enjoy managing your Botajs bots!
| |