KSoft.js
Official Node.js API Wrapper for api.ksoft.si
const { KSoftClient } = require('@ksoft/api');
const ksoft = new KSoftClient('your-very-nice-token');
/* I use a helper asnyc function called main here.
* This would also work using a lambda function or class method,
* as long as it's asynchronous.
*/
async function main() {
const { url } = await ksoft.images.aww();
message.channel.send(url); // discord.js
}
main();Last updated