Skip to content

Commit 24a5480

Browse files
authored
Update test-my-ai-music.js
1 parent a71ffa0 commit 24a5480

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

test-my-ai-music.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11

2-
//import SunoDeno from "./src/SunoDeno.js";
2+
import SunoDeno from "./src/SunoDeno.js";
33

4-
import SunoDeno from 'suno-deno';
4+
//nodejs npm
5+
//import SunoDeno from 'suno-deno';
6+
//if deno land
7+
//import SunoDeno from 'https://unpkg.com/suno-deno';
8+
//or
9+
//import SunoDeno from 'npm:suno-deno';
510

611
async function main(sid, cookie) {
712
try {
@@ -69,17 +74,15 @@ async function main(sid, cookie) {
6974
const ids = ["7cfa03c5-56bb-4eaa-b5e8-84cf0592da9b"];
7075
const specificSongs = await suno.getMetadata(ids);
7176

72-
// const allSongs = await suno.getAllSongs();
73-
74-
// const lyrics = await suno.generateLyrics("حول مدينة مراكش");
75-
// console.log(lyrics);
77+
const allSongs = await suno.getAllSongs();
78+
console.log({allSongs});
79+
const lyrics = await suno.generateLyrics("حول مدينة مراكش");
80+
console.log(lyrics);
7681
} catch (error) {
7782
console.error("Error:", error);
7883
}
7984
}
80-
81-
const cookie =
82-
"__client=eyJhbbEg";
83-
const sid = "sess_2gyfPonaEsXq";
84-
85+
const cookie = '__client=j2s-******3qDO5-';
86+
const sid = 'sess_2*****sXq';
8587
main(sid, cookie);
88+

0 commit comments

Comments
 (0)