Advertisement
Guest User

anarchymc captcha bypass

a guest
Jan 22nd, 2020
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. const snekfetch = require("snekfetch")
  2. setInterval(() => {
  3.  
  4.  
  5. snekfetch.get(`http://api.thealtening.com/v1/generate?token=api-aaaaaaaaaaaaaaaaaaaa&info=true`).then(n => {
  6. var mineflayer = require('mineflayer');
  7. var bot = mineflayer.createBot({
  8. host: "anarchy-mc.com", // optional
  9. port: 25565, // optional
  10. username: n.body.token, // email and password are required only for
  11. password: "a", // online-mode=true servers
  12. version: "1.12.2" // false corresponds to auto version detection (that's the default), put for example "1.8.8" if you need a specific version
  13. });
  14. bot.on('login', () => {
  15. setTimeout(() => {
  16. bot.quit()
  17. }, 10000)
  18. });
  19. bot.on('title', text => {
  20. console.log("[TITLE] " + JSON.parse(text).text.replace(/§./g, ""))
  21. if (JSON.parse(text).text.startsWith("§a")) {
  22. bot.chat(`${JSON.parse(text).text.replace(/§./g, "")}`)
  23. console.log("sent " + `${JSON.parse(text).text.replace(/§./g, "")}`)
  24. setTimeout(() => {
  25. // bot.chat(">I have bypassed captcha! spam soon :) - logging off for now!")
  26. }, 1000)
  27. setTimeout(() => {
  28. bot.quit()
  29. }, 2000)
  30. }
  31. });
  32. });
  33. }, 5000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement