Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ZTzTopia/GTProxy/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The/proxy command is a simple test command that verifies the proxy’s command system is working correctly. It requires no arguments and simply responds with a success message.
Syntax
Usage Example
Execute Proxy Test
Purpose
This command serves several purposes:Verification
Quickly verify that the proxy is running and processing commands
Testing
Test the command execution pipeline without side effects
Example
Serves as a minimal example for developers creating custom commands
Troubleshooting
Diagnose command system issues with a simple test case
Implementation Details
Source Reference
Implementation:/home/daytona/workspace/source/src/command/commands/proxy_command.hpp:7
How It Works
- Receives command: The command registry routes
/proxyto theProxyCommandhandler - Creates log packet: Constructs a
packet::message::Logpacket with the success message - Sends response: Writes the packet to the server connection to display in chat
- Returns success: Returns
Result::Successto indicate successful execution
Code Structure
Use Cases
Development
When developing GTProxy or creating custom commands, use/proxy to:
- Verify the proxy is intercepting chat messages
- Test command registration and routing
- Confirm packet sending works correctly
- Ensure the command context is properly initialized
Troubleshooting
If other commands aren’t working:- Try
/proxyfirst - If it works, the issue is specific to the other command
- If it fails, there’s a problem with the command system itself
Learning
For developers new to GTProxy:- Study the
/proxycommand source code as a starting point - Use it as a template for creating simple custom commands
- Understand the minimal requirements for command execution
Creating Similar Commands
You can create similar test commands using Lua:Related Commands
/help
List all available commands
Custom Commands
Create your own commands with Lua