diff --git a/BedwarsAFKv2/liteconfig/common/macros/.macros.txt b/BedwarsAFKv2/liteconfig/common/macros/.macros.txt index de10fd5..a0d82a0 100644 --- a/BedwarsAFKv2/liteconfig/common/macros/.macros.txt +++ b/BedwarsAFKv2/liteconfig/common/macros/.macros.txt @@ -247,6 +247,7 @@ script.warn.permissions.enabled=0 # KEY_EQUALS Macro[13].Macro=$${stop(all)}$$ +Macro[13].Macro=$${exec(botstopwebhook.txt,botstopwebhook)}$$ # KEY_UP Macro[200].Macro=$${$$}$$ diff --git a/BedwarsAFKv2/liteconfig/common/macros/beddestroyedwebhook.txt b/BedwarsAFKv2/liteconfig/common/macros/beddestroyedwebhook.txt new file mode 100644 index 0000000..9a442ec --- /dev/null +++ b/BedwarsAFKv2/liteconfig/common/macros/beddestroyedwebhook.txt @@ -0,0 +1,6 @@ +wait(3000ms) +&message_json = "{\"content\":\"%&message%\"}" +&example_content = {"content": "","embeds": [{"title": "%PLAYER%","description": ":bed: Bed destroyed.", "color": 12109567, "footer": {"text": "sunsi autogrinder! - https://github.com/familiar/Bedwars-Bot"},"thumbnail": {"url": "https://visage.surgeplay.com/full/512/%PLAYER%"}}]} +setrequestheader("User-Agent","%UUID%") +setrequestheader("Content-Type","application/json") +&response[] = httppost(%@&webhook_url%,%&example_content%,#status) \ No newline at end of file diff --git a/BedwarsAFKv2/liteconfig/common/macros/botstartwebhook.txt b/BedwarsAFKv2/liteconfig/common/macros/botstartwebhook.txt new file mode 100644 index 0000000..0da3b55 --- /dev/null +++ b/BedwarsAFKv2/liteconfig/common/macros/botstartwebhook.txt @@ -0,0 +1,6 @@ +wait(3000ms) +&message_json = "{\"content\":\"%&message%\"}" +&example_content = {"content": "","embeds": [{"title": "%PLAYER%","description": ":unlock: Bot started!", "color": 12109567, "footer": {"text": "sunsi autogrinder! - https://github.com/familiar/Bedwars-Bot"},"thumbnail": {"url": "https://visage.surgeplay.com/full/512/%PLAYER%"}}]} +setrequestheader("User-Agent","%UUID%") +setrequestheader("Content-Type","application/json") +&response[] = httppost(%@&webhook_url%,%&example_content%,#status) \ No newline at end of file diff --git a/BedwarsAFKv2/liteconfig/common/macros/botstopwebhook.txt b/BedwarsAFKv2/liteconfig/common/macros/botstopwebhook.txt new file mode 100644 index 0000000..ea27a8c --- /dev/null +++ b/BedwarsAFKv2/liteconfig/common/macros/botstopwebhook.txt @@ -0,0 +1,6 @@ +wait(3000ms) +&message_json = "{\"content\":\"%&message%\"}" +&example_content = {"content": "","embeds": [{"title": "%PLAYER%","description": ":lock: Bot stopped", "color": 12109567, "footer": {"text": "sunsi autogrinder! - https://github.com/familiar/Bedwars-Bot"},"thumbnail": {"url": "https://visage.surgeplay.com/full/512/%PLAYER%"}}]} +setrequestheader("User-Agent","%UUID%") +setrequestheader("Content-Type","application/json") +&response[] = httppost(%@&webhook_url%,%&example_content%,#status) \ No newline at end of file diff --git a/BedwarsAFKv2/liteconfig/common/macros/bridgestartwebhook.txt b/BedwarsAFKv2/liteconfig/common/macros/bridgestartwebhook.txt new file mode 100644 index 0000000..09c0aee --- /dev/null +++ b/BedwarsAFKv2/liteconfig/common/macros/bridgestartwebhook.txt @@ -0,0 +1,6 @@ +wait(3000ms) +&message_json = "{\"content\":\"%&message%\"}" +&example_content = {"content": "","embeds": [{"title": "%PLAYER%","description": ":bridge_at_night: Started bridging!", "color": 12109567, "footer": {"text": "sunsi autogrinder! - https://github.com/familiar/Bedwars-Bot"},"thumbnail": {"url": "https://visage.surgeplay.com/full/512/%PLAYER%"}}]} +setrequestheader("User-Agent","%UUID%") +setrequestheader("Content-Type","application/json") +&response[] = httppost(%@&webhook_url%,%&example_content%,#status) \ No newline at end of file diff --git a/BedwarsAFKv2/liteconfig/common/macros/bridgestopwebhook.txt b/BedwarsAFKv2/liteconfig/common/macros/bridgestopwebhook.txt new file mode 100644 index 0000000..881bce1 --- /dev/null +++ b/BedwarsAFKv2/liteconfig/common/macros/bridgestopwebhook.txt @@ -0,0 +1,6 @@ +wait(3000ms) +&message_json = "{\"content\":\"%&message%\"}" +&example_content = {"content": "","embeds": [{"title": "%PLAYER%","description": ":bridge_at_night::x: Stopped bridging!", "color": 12109567, "footer": {"text": "sunsi autogrinder! - https://github.com/familiar/Bedwars-Bot"},"thumbnail": {"url": "https://visage.surgeplay.com/full/512/%PLAYER%"}}]} +setrequestheader("User-Agent","%UUID%") +setrequestheader("Content-Type","application/json") +&response[] = httppost(%@&webhook_url%,%&example_content%,#status) \ No newline at end of file diff --git a/BedwarsAFKv2/liteconfig/common/macros/bwfirstrush.txt b/BedwarsAFKv2/liteconfig/common/macros/bwfirstrush.txt index 03026aa..d02ff2b 100644 --- a/BedwarsAFKv2/liteconfig/common/macros/bwfirstrush.txt +++ b/BedwarsAFKv2/liteconfig/common/macros/bwfirstrush.txt @@ -122,6 +122,7 @@ looks(%@#realyaw%,0,0.4); wait(500ms) if(%@#bridgemap% == 1) log("&f[&cBW&f] This is a bridge map. Will bridge on this map.") + exec("bridgestartwebhook.txt","bridgestartwebhook") //Once at gen, goes out to start bridging keydown(right) @@ -194,3 +195,4 @@ endif; exec("bwrc.txt","bwrc") exec("bwtimer.txt","bwtimer") +exec("bridgestopwebhook.txt","bridgestopwebhook") \ No newline at end of file diff --git a/BedwarsAFKv2/liteconfig/common/macros/bwstart.txt b/BedwarsAFKv2/liteconfig/common/macros/bwstart.txt index 61bd216..e43692e 100644 --- a/BedwarsAFKv2/liteconfig/common/macros/bwstart.txt +++ b/BedwarsAFKv2/liteconfig/common/macros/bwstart.txt @@ -24,5 +24,6 @@ wait(1t) log("") wait(100t) +exec("botstartwebhook.txt","botstartwebhook") exec("command.txt","command") wait(25t) \ No newline at end of file diff --git a/BedwarsAFKv2/liteconfig/common/macros/config.txt b/BedwarsAFKv2/liteconfig/common/macros/config.txt index b905e4c..e899c01 100644 --- a/BedwarsAFKv2/liteconfig/common/macros/config.txt +++ b/BedwarsAFKv2/liteconfig/common/macros/config.txt @@ -2,6 +2,9 @@ // User Config // // ---------------- // +//Put your Discord webhook url in between the quotes +@&webhook_url = "WEBHOOK_URL"; + //Set the shop slot based on what your item is at @#blocksslot = 19; @#dreamdefenderslot = 23; diff --git a/BedwarsAFKv2/liteconfig/common/macros/deathwebhook.txt b/BedwarsAFKv2/liteconfig/common/macros/deathwebhook.txt new file mode 100644 index 0000000..691d450 --- /dev/null +++ b/BedwarsAFKv2/liteconfig/common/macros/deathwebhook.txt @@ -0,0 +1,6 @@ +wait(3000ms) +&message_json = "{\"content\":\"%&message%\"}" +&example_content = {"content": "","embeds": [{"title": "%PLAYER%","description": ":skull: Bot died.", "color": 12109567, "footer": {"text": "sunsi autogrinder! - https://github.com/familiar/Bedwars-Bot"},"thumbnail": {"url": "https://visage.surgeplay.com/full/512/%PLAYER%"}}]} +setrequestheader("User-Agent","%UUID%") +setrequestheader("Content-Type","application/json") +&response[] = httppost(%@&webhook_url%,%&example_content%,#status) \ No newline at end of file diff --git a/BedwarsAFKv2/liteconfig/common/macros/eliminatedwebhook.txt b/BedwarsAFKv2/liteconfig/common/macros/eliminatedwebhook.txt new file mode 100644 index 0000000..2fccdfb --- /dev/null +++ b/BedwarsAFKv2/liteconfig/common/macros/eliminatedwebhook.txt @@ -0,0 +1,6 @@ +wait(3000ms) +&message_json = "{\"content\":\"%&message%\"}" +&example_content = {"content": "","embeds": [{"title": "%PLAYER%","description": ":x: Bot got eliminated.", "color": 12109567, "footer": {"text": "sunsi autogrinder! - https://github.com/familiar/Bedwars-Bot"},"thumbnail": {"url": "https://visage.surgeplay.com/full/512/%PLAYER%"}}]} +setrequestheader("User-Agent","%UUID%") +setrequestheader("Content-Type","application/json") +&response[] = httppost(%@&webhook_url%,%&example_content%,#status) \ No newline at end of file diff --git a/BedwarsAFKv2/liteconfig/common/macros/gamejoinwebhook.txt b/BedwarsAFKv2/liteconfig/common/macros/gamejoinwebhook.txt new file mode 100644 index 0000000..670a822 --- /dev/null +++ b/BedwarsAFKv2/liteconfig/common/macros/gamejoinwebhook.txt @@ -0,0 +1,6 @@ +wait(3000ms) +&message_json = "{\"content\":\"%&message%\"}" +&example_content = {"content": "","embeds": [{"title": "%PLAYER%","description": ":white_check_mark: Game joined!", "color": 12109567, "footer": {"text": "sunsi autogrinder! - https://github.com/familiar/Bedwars-Bot"},"thumbnail": {"url": "https://visage.surgeplay.com/full/512/%PLAYER%"}}]} +setrequestheader("User-Agent","%UUID%") +setrequestheader("Content-Type","application/json") +&response[] = httppost(%@&webhook_url%,%&example_content%,#status) \ No newline at end of file diff --git a/BedwarsAFKv2/liteconfig/common/macros/gamewinwebhook.txt b/BedwarsAFKv2/liteconfig/common/macros/gamewinwebhook.txt new file mode 100644 index 0000000..d87870e --- /dev/null +++ b/BedwarsAFKv2/liteconfig/common/macros/gamewinwebhook.txt @@ -0,0 +1,6 @@ +wait(3000ms) +&message_json = "{\"content\":\"%&message%\"}" +&example_content = {"content": "","embeds": [{"title": "%PLAYER%","description": ":white_check_mark: Game won!", "color": 12109567, "footer": {"text": "sunsi autogrinder! - https://github.com/familiar/Bedwars-Bot"},"thumbnail": {"url": "https://visage.surgeplay.com/full/512/%PLAYER%"}}]} +setrequestheader("User-Agent","%UUID%") +setrequestheader("Content-Type","application/json") +&response[] = httppost(%@&webhook_url%,%&example_content%,#status) \ No newline at end of file diff --git a/BedwarsAFKv2/liteconfig/common/macros/onChat.txt b/BedwarsAFKv2/liteconfig/common/macros/onChat.txt index e240908..2e25f01 100644 --- a/BedwarsAFKv2/liteconfig/common/macros/onChat.txt +++ b/BedwarsAFKv2/liteconfig/common/macros/onChat.txt @@ -117,6 +117,7 @@ ifcontains(%CHATCLEAN%,"You have respawned!") keyup(sneak) wait(1000ms) exec("bwgotogen.txt","bwgotogen") + exec("deathwebhook.txt","deathwebhook") endif //Item purchase @@ -131,6 +132,10 @@ ifcontains(%CHATCLEAN%,"You purchased Iron Sword") log(%@#ironsword%) endif +ifcontains(%CHATCLEAN%,"BED DESTRUCTION > Your bed") + exec("beddestroyedwebhook.txt","beddestroyedwebhook") +endif + // Other failsafes ifcontains(%CHATCLEAN%,"You have been eliminated!") @@ -155,6 +160,7 @@ ifcontains(%CHATCLEAN%,"You have been eliminated!") stop(classicpvpbot) wait(1000ms) exec("Command.txt","Command") + exec("eliminatedwebhook.txt","eliminatedwebhook") endif ifcontains(%CHATCLEAN%,"Your bed was destroyed so you are a spectator!") @@ -186,6 +192,7 @@ endif ifcontains(%CHATCLEAN%,"tokens! (Win)") wait(200ms) exec("screenshot.txt","screenshot") + exec("gamewinwebhook.txt","gamewinwebhook") endif ifcontains(%CHATCLEAN%,"Reward Summary") @@ -360,6 +367,7 @@ ifcontains(%CHATCLEAN%,"%@&yourign% has joined"); @#bridgemap = 1; wait(100ms) echo("/map") + exec("gamejoinwebhook.txt","gamejoinwebhook") endif; // Broken maps @@ -675,6 +683,7 @@ ifcontains(%CHATCLEAN%,"Eliminate your opponents"); exec("classicaddons.txt","classicaddons") exec("classichit.txt","classichit") exec("classicmovement.txt","classicmovement") + exec("gamejoinwebhook.txt","gamejoinwebhook") wait(1t) stop; endif; diff --git a/README.md b/README.md index bf97557..90cfabc 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,14 @@ A Bedwars Bot made for Hypixel, compatibility with Fours and Dreams modes. Has r 2. Open the "Dependencies" folder, and install forge 1.12.2 if not installed already. (Make sure you have the Minecraft launcher installed). 3. Once finished installing, run the liteloader 1.12.2 installer, and click the "Extend from:" dropdown. Click 1.12.2 Forge. 4. Copy the "liteconfig" and "mods" folders from "BedwarsAFK" (or BedwarsAFKv2 depending on the version you downloaded) into the ".minecraft" directory. -8. Open the Minecraft launcher. You should now have a profile in the Minecraft launcher called "release 1.12.2-LiteLoader1.12.2-1.12.2-forge..". In the top of the launcher, press on installations, then on that installation and you can run the game. +5. Open the Minecraft launcher. You should now have a profile in the Minecraft launcher called "release 1.12.2-LiteLoader1.12.2-1.12.2-forge..". In the top of the launcher, press on installations, then on that installation and you can run the game. #### MultiMC / Prism Launcher 1. Begin by installing Forge 1.12.2 and LiteLoader. Navigate to "Add Instance," select version 1.12.2, choose Forge as the modloader, then confirm with "OK." 2. Once the installation is complete, select the instance and click "Edit." Proceed to click "Install Loader," choose LiteLoader, and confirm with "OK." 3. Thirdly, download and extract this repository. -6. Launch Prism Launcher. Select your instance and click "Folder." Then, double-click on ".minecraft" and copy the "liteconfig" and "mods" folders from "BedwarsAFK" (or BedwarsAFKv2 depending on the version you downloaded) into the ".minecraft" directory. -7. Finally, launch the game. +4. Launch Prism Launcher. Select your instance and click "Folder." Then, double-click on ".minecraft" and copy the "liteconfig" and "mods" folders from "BedwarsAFK" (or BedwarsAFKv2 depending on the version you downloaded) into the ".minecraft" directory. +5. Finally, launch the game. ### 5a. CONFIGURATION FOR V1 Open "start.txt", and replace the IGN in quotations with your IGN. Save this file. @@ -48,9 +48,10 @@ Open "config.txt", and read through it. Replace the shop slots based on your own ![inventorysetup](https://github.com/familiar/Bedwars-Bot/assets/136278435/852b8003-5717-457b-bd15-8837511a3a27) 6. This is OPTIONAL, but you can also open "command.txt" and replace the Bedwars play command with the one you want to queue. If you set it to dreams, your FKDR will not be affected. -7. Open the Minecraft launcher. You should now have a profile in the Minecraft launcher called "release 1.12.2-LiteLoader1.12.2-1.12.2-forge..". In the top of the launcher, press on installations, then on that installation. -8. Press on "Browser" for the game directory, and select the "BedwarsAFK" (or BedwarsAFKv2 depending on the version you downloaded) folder, which is inside of the Bedwars-Bot-main folder. -9. Click save, and then run the game. +7. This is OPTIONAL, but you can also open "config.txt" and put your own discord webhook url at "WEBHOOK_URL". This will send information using a discord webhook to your discord server. +8. Open the Minecraft launcher. You should now have a profile in the Minecraft launcher called "release 1.12.2-LiteLoader1.12.2-1.12.2-forge..". In the top of the launcher, press on installations, then on that installation. +9. Press on "Browser" for the game directory, and select the "BedwarsAFK" (or BedwarsAFKv2 depending on the version you downloaded) folder, which is inside of the Bedwars-Bot-main folder. +10. Click save, and then run the game. # In-game Setup: