A Rust-based Windows automation tool that automatically sends "owo b" and "owo h" commands to Discord for battle hunting in OwO bot games.
This application automatically finds Discord windows and sends alternating battle commands every 20 seconds:
owo b(battle command)owo h(hunt command)
The bot focuses the Discord window and types the commands as if a user was manually entering them, making it useful for automated OwO bot interactions.
- Automatic Discord Detection: Finds any visible window with "Discord" in the title
- Window Focus Management: Automatically brings Discord to the foreground before sending commands
- Alternating Commands: Switches between "owo b" and "owo h" every 20 seconds
- Unicode Input Support: Uses Windows SendInput API for reliable character input
- Safe Timing: Includes delays to prevent Discord from dropping characters
- Windows OS: This application uses Windows-specific APIs
- Rust: Edition 2024 or later
- Discord: Must have Discord running with a visible window
windowscrate (v0.61.1) with the following features:Win32_FoundationWin32_UI_WindowsAndMessagingWin32_UI_Input_KeyboardAndMouse
-
Clone this repository:
git clone <repository-url> cd rust-owo-battle-hunt
-
Build the project:
cargo build --release
-
Make sure Discord is running and visible
-
Run the application:
cargo run
Or run the compiled executable:
./target/release/owo.exe
-
The bot will:
- Search for a Discord window
- Focus the Discord window
- Send "owo b" command
- Wait 20 seconds
- Send "owo h" command
- Wait 20 seconds
- Repeat indefinitely
- Window Detection: Uses
EnumWindowsto find all visible windows and searches for ones containing "Discord" in the title - Window Focus: Uses
SetForegroundWindowto bring Discord to the front - Input Simulation: Uses
SendInputwith Unicode characters to type commands - Timing Control: Implements delays between characters (5ms) and commands (20s)
- Only targets windows with "Discord" in the title
- Includes character-level delays to prevent input dropping
- Uses proper Unicode input handling
- Graceful error handling if Discord window is not found
To stop the bot, simply close the terminal window or press Ctrl+C.
This tool is for educational purposes. Please ensure you comply with Discord's Terms of Service and any bot-specific rules when using automation tools. Use responsibly and at your own risk.
- Written in Rust using the
windowscrate for Win32 API access - Uses unsafe code blocks for Windows API calls
- Implements proper memory management for Windows handles
- Uses system-level input simulation for maximum compatibility
This project is provided as-is for educational purposes.