Giter Site home page Giter Site logo

amethyste-api's Introduction

NPM version NPM downloads

npm installnfo

Description

Module officiel pour l'api du bot Améthyste

Utilisation

Documentation officielle : https://docs.api.amethyste.moe/

Installation

npm i amethyste-api

Endpoint

  • url = Image url
  • pixelize (entre 1 et 50, default: 8)
  • posterize (entre 1 et 100, defaut : 5 )
  • blur (entre 1 et 30, defaut : 5)
Nom Params
circle url
rejected url
approved url
glitch url
distort url
sepia url
contrast url
greyscale url
invert url
pixelize url, pixelize
blur url, blur
posterize url, posterize
beautiful url
afusion => avatar-fusion url
wanted url
3000years url
rip url
utatoo url
wasted url
frame url
moustache url
scary url

Utilisation

Connexion :

const ameClient = require("amethyste-api")
const ameApi = new ameClient("token")

Endpoint Generate :

ameApi.generate("endpoint", {
    "url" : "image url"
}).then(image => {
    console.log(image)
}).catch(err => {
    throw err;
});

Returns

<Buffer ... >

Endpoint Generate Exemple:

ameApi.generate("glitch", {
    "url" : "https://cdn.discordapp.com/avatars/450352584302002186/c0ff7e943ab89560503b8e99591ff888.png?size=2048"
}).then(image => {
    console.log(image)
}).catch(err => {
    throw err;
})

Returns

<Buffer ... >

Endpoint Image Exemple:

ameApi.image("wallpaper", {
    "nsfw" : "false"
}).then(image => {
    console.log(image)
}).catch(err => {
    throw err;
});

Returns

{
  "status": 200,
  "url": "https://cdn.amethyste.moe/wallpaper/14ebdfb3f9a9e4025b54ab759f1ad9e60bd0.jpg"
}

amethyste-api's People

Contributors

androz2091 avatar jorisdugue avatar meatreed avatar shadowv7 avatar zaruike avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

amethyste-api's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.