summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-23 23:07:34 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-23 23:07:34 -0300
commit18c7698c1effd6a2bd526c04dbe49a84978c153d (patch)
tree97661a79408079f1ce92b3ddfe8d98d4b2912b46
parent2cbcc7db1b007bdda9813ddb22d5fd2c1a193010 (diff)
downloadall-18c7698c1effd6a2bd526c04dbe49a84978c153d.tar.gz
all-18c7698c1effd6a2bd526c04dbe49a84978c153d.tar.bz2
all-18c7698c1effd6a2bd526c04dbe49a84978c153d.tar.xz
all-18c7698c1effd6a2bd526c04dbe49a84978c153d.zip
Add a simple Linux bot for At Keyboard botting
-rw-r--r--tmw2_bot.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tmw2_bot.sh b/tmw2_bot.sh
new file mode 100644
index 0000000..adbe8c0
--- /dev/null
+++ b/tmw2_bot.sh
@@ -0,0 +1,15 @@
+# User Settings
+USER="login_name";
+MANAPLUS="1.9.3.23";
+
+# Server settings
+SERVER="server.tmw2.org";
+
+# Logic
+while :; do
+ xdotool search --sync --name "ManaPlus $MANAPLUS - $USER $SERVER" key "ctrl" ;
+ sleep 1 ;
+ xdotool search --sync --name "ManaPlus $MANAPLUS - $USER $SERVER" key z z ;
+ sleep 1 ;
+done
+