labybotapi v1.0.8
Official LabyBOT API Module for NPM
Documentation: https://api.labybot.pl
Updates: https://api.labybot.pl/updates.php
Authors: https://api.labybot.pl/authors.php
Discord server: https://discord.gg/2G7zhfN
Patch: https://api.labybot.pl/api/index.php

Installation:
$ npm install labybotapiEndpoints:
- Random things
api.labybot.pl/api/index.php?json=BOOLEAN&type=ENDPOINT - Random images
api.labybot.pl/api/index.php?json=BOOLEAN&type=ENDPOINT - Filters
api.labybot.pl/api/ENDPOINT.php?json=BOOLEAN&power=NUMBER&url=URL- gaussian_blur &power= ✅
- brightness &power= ✅
- smooth &power= ✅
- pixelate &power= ✅
- grayscale &power= ❎
- negate &power= ❎
- emboss &power= ❎
- mean_removal &power= ❎
- Text
api.labybot.pl/api/terminal.php?json=BOOLEAN&text=STRING* terminal BETAInformation
EN: Filters will be returned using JSON in the future.
PL: Filtry będą w przyszłości zwracane za pomocą JSON'a.
Usage
Required function
const labybot = require("labybotapi");EN: Remember about „await” (async)! Without this, the module will not work.
PL: Pamiętaj o „await” (async)! Bez tego, moduł nie będzie działać.
Random things
const text = await labybot.owo();
// -----------^ Await is required!For Discord.js
message.channel.send(await labybot.owo());Async Example (Discord.js)
(async () => {
message.channel.send(await labybot.owo());
})();etc...
Random images
const text = await labybot.cats();etc...
Filters
const url = await labybot.blur("https://api.labybot.pl/images/example-min.jpg", 13);
// blur(url[STRING], power[NUMBER]);const url = await labybot.grayscale("https://api.labybot.pl/images/example-min.jpg");
// grayscale(url[STRING]);etc...
Post-installation examples
Correct usage and examples for Discord.js:
/node_modules/labybotapi/examples
Contact
Email: nekopijemleko120@gmail.com
Discord: https://discord.gg/2G7zhfN (Owner: Neko Pije Mleko)
License
ISC