Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const snekfetch = require("snekfetch")
- setInterval(() => {
- snekfetch.get(`http://api.thealtening.com/v1/generate?token=api-aaaaaaaaaaaaaaaaaaaa&info=true`).then(n => {
- var mineflayer = require('mineflayer');
- var bot = mineflayer.createBot({
- host: "anarchy-mc.com", // optional
- port: 25565, // optional
- username: n.body.token, // email and password are required only for
- password: "a", // online-mode=true servers
- 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
- });
- bot.on('login', () => {
- setTimeout(() => {
- bot.quit()
- }, 10000)
- });
- bot.on('title', text => {
- console.log("[TITLE] " + JSON.parse(text).text.replace(/§./g, ""))
- if (JSON.parse(text).text.startsWith("§a")) {
- bot.chat(`${JSON.parse(text).text.replace(/§./g, "")}`)
- console.log("sent " + `${JSON.parse(text).text.replace(/§./g, "")}`)
- setTimeout(() => {
- // bot.chat(">I have bypassed captcha! spam soon :) - logging off for now!")
- }, 1000)
- setTimeout(() => {
- bot.quit()
- }, 2000)
- }
- });
- });
- }, 5000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement