Twan07 commited on
Commit
f59066a
·
verified ·
1 Parent(s): ce2f235

Update index.ts

Browse files
Files changed (1) hide show
  1. index.ts +2 -2
index.ts CHANGED
@@ -4,7 +4,7 @@ import { readdirSync } from 'fs';
4
  import { join } from 'path';
5
  import type { Command } from './types';
6
  import { MusicQueue } from './utils/MusicQueue';
7
- import { HttpsProxyAgent } from 'http://103.82.36.237:8888'; // Cài đặt gói này: bun add https-proxy-agent
8
 
9
  const commandsDir = join(import.meta.dir, 'Commands'); // Bun sử dụng import.meta.dir thay vì __dirname
10
  const commands: Command[] = readdirSync(commandsDir)
@@ -24,7 +24,7 @@ const clients: Client[] = [];
24
  const queues = new Map<string, MusicQueue>(); // Quản lý hàng đợi nhạc theo guildId
25
 
26
  config.tokens.forEach((token: string, index: number) => {
27
- const proxy = 'http://username:password@192.168.1.1:1080'; // Thay bằng thông tin proxy của bạn
28
  const agent = new HttpsProxyAgent(proxy);
29
 
30
  const client = new Client({
 
4
  import { join } from 'path';
5
  import type { Command } from './types';
6
  import { MusicQueue } from './utils/MusicQueue';
7
+ import { HttpsProxyAgent } from 'https-proxy-agent'; // Cài đặt gói này: bun add https-proxy-agent
8
 
9
  const commandsDir = join(import.meta.dir, 'Commands'); // Bun sử dụng import.meta.dir thay vì __dirname
10
  const commands: Command[] = readdirSync(commandsDir)
 
24
  const queues = new Map<string, MusicQueue>(); // Quản lý hàng đợi nhạc theo guildId
25
 
26
  config.tokens.forEach((token: string, index: number) => {
27
+ const proxy = 'http://103.82.36.237:8888'; // Thay bằng thông tin proxy của bạn
28
  const agent = new HttpsProxyAgent(proxy);
29
 
30
  const client = new Client({