-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Server üzerinden discord ile captcha çözümü & ESM geçişi
- Loading branch information
Showing
5 changed files
with
99 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
import 'dotenv/config'; | ||
import Client from './components/Client'; | ||
import { WebSocket } from 'ws'; | ||
import { wait } from './helpers/common'; | ||
import logUpdate from 'log-update'; | ||
import Client from './components/Client.js'; | ||
|
||
export let client: Client; | ||
|
||
const main = async () => { | ||
client = new Client(); | ||
client.initialize(); | ||
|
||
while (client.socket.readyState !== WebSocket.OPEN) { | ||
console.log('Socket bağlantısı gerçekleştirilene kadar bekliyoruz!'); | ||
await wait(5000); | ||
} | ||
|
||
console.log('Socket bağlantısı başarılı bir şekilde gerçekleşti!', client.socket.readyState); | ||
setInterval(() => { | ||
logUpdate(` | ||
Server: ${client.socket.url} | ||
Status: ${client.socket.readyState} | ||
Products: ${client.products.length} | ||
Captcha: ${client.captcha.size} | ||
`); | ||
}, 500); | ||
}; | ||
|
||
main(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters