Spaces:
Paused
Paused
Update bot.js
Browse files
bot.js
CHANGED
|
@@ -7,7 +7,7 @@ const pathfinder = require("mineflayer-pathfinder").pathfinder;
|
|
| 7 |
const { GoalBlock, GoalXZ } = require("mineflayer-pathfinder").goals;
|
| 8 |
const util = require("util");
|
| 9 |
const { SocksProxyAgent } = require("socks-proxy-agent");
|
| 10 |
-
const
|
| 11 |
|
| 12 |
const config = require("./settings.json");
|
| 13 |
const loggers = require("./logging.js");
|
|
@@ -49,7 +49,7 @@ let bot = null;
|
|
| 49 |
|
| 50 |
async function createBot() {
|
| 51 |
|
| 52 |
-
const newProxyUrl = await
|
| 53 |
const agent = await new SocksProxyAgent(newProxyURL);
|
| 54 |
bot = await mineflayer.createBot({
|
| 55 |
username: config["bot-account"]["username"],
|
|
|
|
| 7 |
const { GoalBlock, GoalXZ } = require("mineflayer-pathfinder").goals;
|
| 8 |
const util = require("util");
|
| 9 |
const { SocksProxyAgent } = require("socks-proxy-agent");
|
| 10 |
+
const proxyChain = require("proxy-chain");
|
| 11 |
|
| 12 |
const config = require("./settings.json");
|
| 13 |
const loggers = require("./logging.js");
|
|
|
|
| 49 |
|
| 50 |
async function createBot() {
|
| 51 |
|
| 52 |
+
const newProxyUrl = await proxyChain.anonymizeProxy("socks5://185.103.100.141:1080");
|
| 53 |
const agent = await new SocksProxyAgent(newProxyURL);
|
| 54 |
bot = await mineflayer.createBot({
|
| 55 |
username: config["bot-account"]["username"],
|