power word: kiss

This commit is contained in:
amy 2024-10-18 02:05:49 +03:30
parent 555e47da62
commit e93c3e7240
5 changed files with 28 additions and 1 deletions

View file

@ -8,6 +8,7 @@
},
"keywords": [],
"author": "",
"type": "module",
"license": "ISC",
"dependencies": {
"discord.js": "^14.16.3",

3
src/api/fetches.ts Normal file
View 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
View file

View 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
View 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/*"]
}