FridayNightFunkinBoyfriendBot/prototyping-crap/wiki.js

10 lines
307 B
JavaScript
Raw Normal View History

2024-07-25 22:57:29 -04:00
const { request } = require("undici");
// https://en.wikipedia.org/w/api.php
async function sus () {
const query = new URLSearchParams("sus");
const wikiResult = await request(`https://en.wikipedia.org/wiki/sus`);
const result = await wikiResult.body;
console.log((await result.json()))
}
sus()