SlnDmry commited on
Commit
1e2aefb
·
verified ·
1 Parent(s): fdbf315

Update bot.js

Browse files
Files changed (1) hide show
  1. bot.js +2 -2
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 { ProxyChain } = require("proxy-chain");
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 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"],
 
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"],