Introduction
Welcome to the Ethone Custom Scripts documentation. Custom scripts allow you to extend your Discord experience with JavaScript code that runs on your client.How It Works
Scripts are written in JavaScript and executed by the Go client using an embedded JavaScript engine (Goja). Your JavaScript code is interpreted and runs natively within the Go runtime, providing fast and secure execution.What are Custom Scripts?
Custom scripts are JavaScript programs that can:- Listen to Discord events (messages, member joins, etc.)
- Send and manage messages automatically
- Create custom commands with your prefix
- Make HTTP requests to external APIs
- Log information for debugging
Quick Start
Important Rules
Never use blocking code at the top level of your scriptAvailable APIs
- Ethone Namespace - Core utilities (logging, sleep, commands)
- Discord Namespace - Discord actions (messages, HTTP)
- Event Hooks - Listen to Discord events