Spaces:
Paused
Paused
Update bot.js
Browse files
bot.js
CHANGED
|
@@ -136,21 +136,6 @@ function createBot(username, authType, role, partnerName) {
|
|
| 136 |
// Paket hacmini azaltıp bazı olaylara maruz kalma ihtimalini biraz
|
| 137 |
// düşürebilir (garanti bir çözüm değil, sadece maruziyeti azaltır).
|
| 138 |
viewDistance: "tiny",
|
| 139 |
-
|
| 140 |
-
connect: async (client) => {
|
| 141 |
-
try {
|
| 142 |
-
const info = await SocksClient.createConnection({
|
| 143 |
-
proxy: { host: "127.0.0.1", port: 5560, type: 5 },
|
| 144 |
-
command: "connect",
|
| 145 |
-
destination: { host: config.server.ip, port: config.server.port }
|
| 146 |
-
});
|
| 147 |
-
client.setSocket(info.socket);
|
| 148 |
-
client.emit("connect");
|
| 149 |
-
logger.info(`[${username}] SOCKS5 bağlantısı kuruldu.`);
|
| 150 |
-
} catch (err) {
|
| 151 |
-
logger.error(`[${username}] Proxy hatası: ${err.message}`);
|
| 152 |
-
}
|
| 153 |
-
}
|
| 154 |
});
|
| 155 |
|
| 156 |
botInstances[username] = bot;
|
|
|
|
| 136 |
// Paket hacmini azaltıp bazı olaylara maruz kalma ihtimalini biraz
|
| 137 |
// düşürebilir (garanti bir çözüm değil, sadece maruziyeti azaltır).
|
| 138 |
viewDistance: "tiny",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
});
|
| 140 |
|
| 141 |
botInstances[username] = bot;
|