Metadata-Version: 2.4
Name: yambot
Version: 0.2.0
Summary: Screenshot-driven autoclicker for My Singing Monsters on Linux/Wayland and Windows
Project-URL: Homepage, https://github.com/DraTeots/yambot
Project-URL: Repository, https://github.com/DraTeots/yambot.git
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: click
Requires-Dist: evdev; sys_platform == 'linux'
Requires-Dist: mss; sys_platform == 'win32'
Requires-Dist: numpy
Requires-Dist: omegaconf>=2.3.1
Requires-Dist: opencv-python
Requires-Dist: pynput; sys_platform == 'win32'
Requires-Dist: structlog
Description-Content-Type: text/markdown

# yambot
Yet Another My Singing Monsters Bot

Because my son loves singing monsters and I hate mindlessly clicking on stuff!
(While still appreciating the musing in the game!)

> Or "Screenshot-driven autoclicker for My Singing Monsters on Linux/Wayland and Windows"

Workflows: 

- Collect resources
- Light all friends fires!!!

And yes, hell, it is slow!


##  LINUX. System setup (one time)

Tested on Arch + KDE setups

Input and output both go through evdev. The only setup is granting your user access to `/dev/uinput` and
`/dev/input/event*`, which the `input` group below covers.

```fish
# load the uinput module now and on every boot
sudo modprobe uinput
echo uinput | sudo tee /etc/modules-load.d/uinput.conf

# grant the 'input' group access to /dev/uinput
echo 'KERNEL=="uinput", MODE="0660", GROUP="input", OPTIONS+="static_node=uinput"' \
  | sudo tee /etc/udev/rules.d/99-uinput.rules
sudo udevadm control --reload-rules
sudo udevadm trigger

# add yourself to the input group
sudo usermod -aG input $USER
```

The group change doesn't apply to your running session. Log out and back in. To test in the current terminal without relogging, start a subshell that has the group:

```fish
newgrp input
```

Verify both are right:

```fish
ls -l /dev/uinput      # should show: crw-rw---- ... root input
id | grep -o input     # should print: input
```

The `input` group also covers reading `/dev/input/event*`, so the same setup gives you key listening later if you want it.

