1.0.8 • Published 3 years ago

labybotapi v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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

LabyBOT
npm npm npm bundle size NPM Website

Installation:

$ npm install labybotapi

Endpoints:

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