Namespace

Plugins

Plugins

Plugins to complement and add new functionalities

View Source plugins/anime.js, line 11

Methods

# static anime(idChat, photo, messageError, messageNoImage)

Plugin to transform your selfie into an anime portrait using minivision photo2cartoon

Parameters:
Name Type Description
idChat string

Chat id to send the new image to

photo string

Url, path to base64 image

messageError string

Message to send in case of error

messageNoImage string

Message to send in case of not receiving an image

See:

View Source plugins/anime.js, line 16

# static cartoon(idChat, photo, messageError, messageNoImage)

Plugin to transform your selfie into an cartoon portrait using

Parameters:
Name Type Description
idChat string

Chat id to send the new image to

photo string

Url, path to base64 image

messageError string

Message to send in case of error

messageNoImage string

Message to send in case of not receiving an image

See:

View Source plugins/cartoon.js, line 12

# static coronavirus(idChat, search, title, rowsToDisplay, headers, filters, messageError, messageNoDataFound)

Plugin to obtain information on the coronavirus by countries, cases, deaths, etc.

Parameters:
Name Type Description
idChat string

Chat id to send the new image to

search string

Search parameter (country, cases, deaths, etc)

title string

Title to display in image

rowsToDisplay number

Number of countries to show in the image

headers Array.<string>

Name of the headers to display

filters Array.<object>

Configuration of the filters to be able to search

name string

Filter name

values Array.<string>

Possible values ​​that the user can enter

messageError string

Message to send in case of error

messageNoDataFound string

Message to send in case of not finding information

See:

View Source plugins/coronavirus.js, line 99

# static lifehacks(idChat, language, messageError, messageBadLanguage)

Plugin to get videos from life hacks

Parameters:
Name Type Description
idChat string

Chat id to send the new image to

language string

Language to search

messageError string

Message to send in case of error

messageBadLanguage string

Message to send when the indicated language is not supported

View Source plugins/lifehacks.js, line 191

# static meme(idChat, language, messageError, messageNoSubReddit, messageTypeNoSupport)

Plugin that allows you to send different memes from subreddits in English and Spanish

Parameters:
Name Type Description
idChat string

Chat id to send the new image to

language string

Language to search memes (en / es)

messageError string

Message to send in case of error

messageNoSubReddit string

Message to send when no subreddits are found for the indicated language

messageTypeNoSupport string

Message to send when the received meme is not supported

View Source plugins/meme.js, line 48

# static movie(idChat, search, messageError, messageNoDataFound)

Plugin that allows you to obtain movies to watch online in different qualities

Parameters:
Name Type Description
idChat string

Chat id to send the new image to

search string

Movie to search

messageError string

Message to send in case of error

messageNoDataFound string

Message to send when no movie is found

View Source plugins/movies.js, line 137

# static music(idChat, search, messageError, messageNoDataFound, messageValidClientId)

Plugin to get a song in mp3 format directly from soundcloud

Parameters:
Name Type Description
idChat string

Chat id to send the new image to

search string

Customer search parameter

messageError string

Message to send in case of error

messageNoDataFound string

Message to send in case of not finding information

messageValidClientId string

Message to send when a clientId is not indicated in the initial configuration

See:

View Source plugins/music.js, line 101

# static news(idChat, search, messageError)

Plugin to get news from the different rss sources that are configured

Parameters:
Name Type Description
idChat string

Chat id to send the new image to

search string

Customer search parameter

messageError string

Message to send in case of error

View Source plugins/news.js, line 130

# static translate(idChat, text, to, messageError)

Plugin that allows you to translate the desired text into any language

Parameters:
Name Type Description
idChat string

Chat id to send the new image to

text string

Text to translate

to string

Target language to translate

messageError string

Message to send in case of error

View Source plugins/translate.js, line 10

# static wiki(idChat, search, language, messageError, messageNoDataFound)

Plugin that allows the search of different things in wikipedia

Parameters:
Name Type Description
idChat string

Chat id to send the new image to

search string

Search parameter to perform

language string

Language in which to search

messageError string

Message to send in case of error

messageNoDataFound string

Message to send in case of not finding information

View Source plugins/wiki.js, line 93

# static youtube(idChat, search, messageError, messageNoDataFound)

Plugin that allows you to search for videos directly from YouTube

Parameters:
Name Type Description
idChat string

Chat id to send the new image to

search string

Search parameter to perform

messageError string

Message to send in case of error

messageNoDataFound string

Message to send in case of not finding information

View Source plugins/youtube.js, line 20

# static zombie(idChat, photo, messageError, messageNoFace, messageNoImage)

Plugin that allows you to transform your selfie into a zombie

Parameters:
Name Type Description
idChat string

Chat id to send the new image to

photo string

Url, path to base64 image

messageError string

Message to send in case of error

messageNoFace string

Message to send when a face is not detected in the image

messageNoImage string

Message to send in case of not receiving an image

View Source plugins/zombie.js, line 12