power word: kiss
This commit is contained in:
parent
555e47da62
commit
e93c3e7240
5 changed files with 28 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"type": "module",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"discord.js": "^14.16.3",
|
||||
|
|
3
src/api/fetches.ts
Normal file
3
src/api/fetches.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export async function playingNow(name: string): Promise<any>{
|
||||
return fetch(`https://api.listenbrainz.org/1/user/${name}/playing-now`)
|
||||
}
|
0
src/api/types.ts
Normal file
0
src/api/types.ts
Normal file
|
@ -1 +1,5 @@
|
|||
console.log("penis")
|
||||
import { playingNow } from "./api/fetches.ts";
|
||||
|
||||
const i = await playingNow("exhq")
|
||||
|
||||
console.log(await i.text())
|
19
tsconfig.json
Normal file
19
tsconfig.json
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"module": "ESNext",
|
||||
"target": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"skipLibCheck": true,
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"allowImportingTsExtensions": true,
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"ts-node": {
|
||||
"compilerOptions": {
|
||||
"module": "ESNext"
|
||||
}
|
||||
},
|
||||
"include": ["src/*"]
|
||||
}
|
Loading…
Add table
Reference in a new issue