Update index.js
Browse files
index.js
CHANGED
|
@@ -1497,28 +1497,7 @@ result : {name: file?.name,
|
|
| 1497 |
.get('/spotifySearch', async (req, res) => {
|
| 1498 |
try {
|
| 1499 |
async function spotifySearch(query) {
|
| 1500 |
-
let acc =
|
| 1501 |
-
{
|
| 1502 |
-
id: "e22d2dda8830401b88e4aebaf1327d21",
|
| 1503 |
-
secret: "37d4c71ee45a47c1baccec2ae6f789d6",
|
| 1504 |
-
},
|
| 1505 |
-
{
|
| 1506 |
-
id: "2a16c7e8b59a459c91e0f6e5f734dbad",
|
| 1507 |
-
secret: "b000f142441545ceb2a831c341145c3d",
|
| 1508 |
-
},
|
| 1509 |
-
{
|
| 1510 |
-
id: "189a1643acfa4fd3b9a665a84d2f9b8f",
|
| 1511 |
-
secret: "bf82850195df4066b652801e262238cd",
|
| 1512 |
-
},
|
| 1513 |
-
{
|
| 1514 |
-
id: "6430383e20eb4bccac72961146c55240",
|
| 1515 |
-
secret: "d46acaa4104f4016b3a228206497fc32",
|
| 1516 |
-
},
|
| 1517 |
-
{
|
| 1518 |
-
id: "7e15fc4078014b45954582148be5bc85",
|
| 1519 |
-
secret: "55a465fa161f4f24bc9f0ef7384d4b96",
|
| 1520 |
-
},
|
| 1521 |
-
];
|
| 1522 |
acc = acc[Math.floor(Math.random() * acc.length)];
|
| 1523 |
|
| 1524 |
async function getToken() {
|
|
|
|
| 1497 |
.get('/spotifySearch', async (req, res) => {
|
| 1498 |
try {
|
| 1499 |
async function spotifySearch(query) {
|
| 1500 |
+
let acc = JSON.parse(process.env.ALL_ACC_SPOTIFY)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1501 |
acc = acc[Math.floor(Math.random() * acc.length)];
|
| 1502 |
|
| 1503 |
async function getToken() {
|