Blague.xyz
Blague.xyz is a package to get jokes and FML easily from the Blague.xyz API.
🇬🇧 Jokes/FML in english are supported 🇫🇷 Blagues/Vie de merde en français sont supportées
Installation
$ npm install --save blague.xyz
API Token
You need an API Key to send request to the Blague.xyz API. Click here to get one.
Usage example
Jokes/Blague
const Client = ;const joker = "API token" defaultLang: "fr" // The default language for jokes and fml; // Gets a random joke. As no language is specified, it will use the default language of the client, "fr" in our case. joker; // Gets an english joke. If you specify a language, it will use it instead of the default language.joker; // Gets a joke with its IDjoker; // Gets the joke list. [premium only]joker;
FML/VDM
const Client = ;const joker = "API token" defaultLang: "fr" // The default language for jokes and fml; // Gets a random vdm. As no language is specified, it will use the default language of the client, "fr" in our case. joker; // Gets a random vdm with type "hot".joker; // Gets an english fml. If you specify a language, it will use it instead of the default language.joker; // Gets a vdm with its IDjoker;