Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OWO Battle Hunt Bot

A Rust-based Windows automation tool that automatically sends "owo b" and "owo h" commands to Discord for battle hunting in OwO bot games.

Overview

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.

Features

  • 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

Requirements

  • Windows OS: This application uses Windows-specific APIs
  • Rust: Edition 2024 or later
  • Discord: Must have Discord running with a visible window

Dependencies

  • windows crate (v0.61.1) with the following features:
    • Win32_Foundation
    • Win32_UI_WindowsAndMessaging
    • Win32_UI_Input_KeyboardAndMouse

Installation

  1. Clone this repository:

    git clone <repository-url>
    cd rust-owo-battle-hunt
  2. Build the project:

    cargo build --release

Usage

  1. Make sure Discord is running and visible

  2. Run the application:

    cargo run

    Or run the compiled executable:

    ./target/release/owo.exe
  3. 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

How It Works

  1. Window Detection: Uses EnumWindows to find all visible windows and searches for ones containing "Discord" in the title
  2. Window Focus: Uses SetForegroundWindow to bring Discord to the front
  3. Input Simulation: Uses SendInput with Unicode characters to type commands
  4. Timing Control: Implements delays between characters (5ms) and commands (20s)

Safety Features

  • 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

Stopping the Bot

To stop the bot, simply close the terminal window or press Ctrl+C.

Disclaimer

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.

Technical Details

  • Written in Rust using the windows crate 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

License

This project is provided as-is for educational purposes.

About

for fun rust script because I do not want to use AHK

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages