wabot
Version:
Whatsapp Bot Module for automate response and interact whit users
3,205 lines (951 loc) • 40.9 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Wabot Documentation Plugins</title>
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<script src="./build/entry.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="https://fonts.googleapis.com/css?family=Roboto:100,400,700|Inconsolata,700" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<link type="text/css" rel="stylesheet" href="https://jmblog.github.io/color-themes-for-google-code-prettify/themes/tomorrow-night.min.css">
<link type="text/css" rel="stylesheet" href="styles/app.min.css">
<link type="text/css" rel="stylesheet" href="styles/iframe.css">
<link type="text/css" rel="stylesheet" href="">
<script async defer src="https://buttons.github.io/buttons.js"></script>
</head>
<body class="layout small-header">
<div id="stickyNavbarOverlay"></div>
<div class="top-nav">
<div class="inner">
<a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
<div class="logo">
<a href="index.html">
<h1 class="navbar-item">Wabot Documentation</h1>
</a>
</div>
<div class="menu">
<div class="navigation">
<a
href="index.html"
class="link"
>
API Documentation
</a>
<a
class="link user-link "
href="https://github.com/luiscruzga/wabot"
>
Github
</a>
<a
class="link user-link "
href="https://github.com/luiscruzga/wabot/blob/master/example/test.js"
>
Example
</a>
</div>
</div>
</div>
</div>
<div id="main">
<div
class="sidebar "
id="sidebarNav"
>
<div class="search-wrapper">
<input id="search" type="text" placeholder="Search docs..." class="input">
</div>
<nav>
<h2><a href="index.html">Documentation</a></h2><div class="category"><h3>Namespaces</h3><ul><li><a href="Plugins.html">Plugins</a></li></ul><h3>Classes</h3><ul><li><a href="WABOT.html">WABOT</a></li></ul><h3>Events</h3><ul><li><a href="WABOT.html#event:command">command</a></li><li><a href="WABOT.html#event:message">message</a></li><li><a href="WABOT.html#event:onAddedToGroup">onAddedToGroup</a></li><li><a href="WABOT.html#event:onBattery">onBattery</a></li><li><a href="WABOT.html#event:onMessageFromBloqued">onMessageFromBloqued</a></li><li><a href="WABOT.html#event:onMessageFromNoPrivileges">onMessageFromNoPrivileges</a></li><li><a href="WABOT.html#event:onMessageMediaUploadedEvent">onMessageMediaUploadedEvent</a></li><li><a href="WABOT.html#event:onParticipantsChanged">onParticipantsChanged</a></li><li><a href="WABOT.html#event:onPlugged">onPlugged</a></li><li><a href="WABOT.html#event:onRemovedFromGroup">onRemovedFromGroup</a></li><li><a href="WABOT.html#event:onStateChanged">onStateChanged</a></li><li><a href="WABOT.html#event:ready">ready</a></li><li><a href="WABOT.html#event:vcard">vcard</a></li><li><a href="WABOT.html#event:waitNewAcknowledgements">waitNewAcknowledgements</a></li></ul></div>
</nav>
</div>
<div class="core" id="main-content-wrapper">
<div class="content">
<header class="page-title">
<p>Namespace</p>
<h1>Plugins</h1>
</header>
<section>
<header>
<h2>Plugins</h2>
</header>
<article>
<div class="container-overview">
<div class="description"><p>Plugins to complement and add new functionalities</p></div>
<dl class="details">
<p class="tag-source">
<a href="plugins_anime.js.html" class="button">View Source</a>
<span>
<a href="plugins_anime.js.html">plugins/anime.js</a>, <a href="plugins_anime.js.html#line11">line 11</a>
</span>
</p>
</dl>
</div>
<div class='vertical-section'>
<h1>Methods</h1>
<div class="members">
<div class="member">
<h4 class="name" id=".anime">
<a class="href-link" href="#.anime">#</a>
<span class='tag'>static</span>
<span class="code-name">
anime<span class="signature">(idChat, photo, messageError, messageNoImage)</span><span class="type-signature"></span>
</span>
</h4>
<div class="description">
<p>Plugin to transform your selfie into an anime portrait using minivision photo2cartoon</p>
</div>
<h5>Parameters:</h5>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>idChat</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Chat id to send the new image to</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>photo</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Url, path to base64 image</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageError</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of error</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageNoImage</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of not receiving an image</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="https://github.com/minivision-ai/photo2cartoon">Photo2Cartoon</a></li>
</ul>
</dd>
<p class="tag-source">
<a href="plugins_anime.js.html" class="button">View Source</a>
<span>
<a href="plugins_anime.js.html">plugins/anime.js</a>, <a href="plugins_anime.js.html#line16">line 16</a>
</span>
</p>
</dl>
</div>
<div class="member">
<h4 class="name" id=".cartoon">
<a class="href-link" href="#.cartoon">#</a>
<span class='tag'>static</span>
<span class="code-name">
cartoon<span class="signature">(idChat, photo, messageError, messageNoImage)</span><span class="type-signature"></span>
</span>
</h4>
<div class="description">
<p>Plugin to transform your selfie into an cartoon portrait using</p>
</div>
<h5>Parameters:</h5>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>idChat</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Chat id to send the new image to</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>photo</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Url, path to base64 image</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageError</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of error</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageNoImage</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of not receiving an image</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="https://deepai.org/machine-learning-model/toonify">DeepAiToonify</a></li>
</ul>
</dd>
<p class="tag-source">
<a href="plugins_cartoon.js.html" class="button">View Source</a>
<span>
<a href="plugins_cartoon.js.html">plugins/cartoon.js</a>, <a href="plugins_cartoon.js.html#line12">line 12</a>
</span>
</p>
</dl>
</div>
<div class="member">
<h4 class="name" id=".coronavirus">
<a class="href-link" href="#.coronavirus">#</a>
<span class='tag'>static</span>
<span class="code-name">
coronavirus<span class="signature">(idChat, search, title, rowsToDisplay, headers, filters, messageError, messageNoDataFound)</span><span class="type-signature"></span>
</span>
</h4>
<div class="description">
<p>Plugin to obtain information on the coronavirus by countries, cases, deaths, etc.</p>
</div>
<h5>Parameters:</h5>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>idChat</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Chat id to send the new image to</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>search</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Search parameter (country, cases, deaths, etc)</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>title</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Title to display in image</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>rowsToDisplay</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"><p>Number of countries to show in the image</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">Array.<string></span>
</td>
<td class="description last"><p>Name of the headers to display</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>filters</code></td>
<td class="type">
<span class="param-type">Array.<object></span>
</td>
<td class="description last"><p>Configuration of the filters to be able to search</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>name</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Filter name</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>values</code></td>
<td class="type">
<span class="param-type">Array.<string></span>
</td>
<td class="description last"><p>Possible values that the user can enter</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageError</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of error</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageNoDataFound</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of not finding information</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="https://deepai.org/machine-learning-model/toonify">DeepAiToonify</a></li>
</ul>
</dd>
<p class="tag-source">
<a href="plugins_coronavirus.js.html" class="button">View Source</a>
<span>
<a href="plugins_coronavirus.js.html">plugins/coronavirus.js</a>, <a href="plugins_coronavirus.js.html#line99">line 99</a>
</span>
</p>
</dl>
</div>
<div class="member">
<h4 class="name" id=".lifehacks">
<a class="href-link" href="#.lifehacks">#</a>
<span class='tag'>static</span>
<span class="code-name">
lifehacks<span class="signature">(idChat, language, messageError, messageBadLanguage)</span><span class="type-signature"></span>
</span>
</h4>
<div class="description">
<p>Plugin to get videos from life hacks</p>
</div>
<h5>Parameters:</h5>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>idChat</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Chat id to send the new image to</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>language</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Language to search</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageError</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of error</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageBadLanguage</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send when the indicated language is not supported</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="plugins_lifehacks.js.html" class="button">View Source</a>
<span>
<a href="plugins_lifehacks.js.html">plugins/lifehacks.js</a>, <a href="plugins_lifehacks.js.html#line191">line 191</a>
</span>
</p>
</dl>
</div>
<div class="member">
<h4 class="name" id=".meme">
<a class="href-link" href="#.meme">#</a>
<span class='tag'>static</span>
<span class="code-name">
meme<span class="signature">(idChat, language, messageError, messageNoSubReddit, messageTypeNoSupport)</span><span class="type-signature"></span>
</span>
</h4>
<div class="description">
<p>Plugin that allows you to send different memes from subreddits in English and Spanish</p>
</div>
<h5>Parameters:</h5>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>idChat</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Chat id to send the new image to</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>language</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Language to search memes (en / es)</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageError</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of error</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageNoSubReddit</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send when no subreddits are found for the indicated language</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageTypeNoSupport</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send when the received meme is not supported</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="plugins_meme.js.html" class="button">View Source</a>
<span>
<a href="plugins_meme.js.html">plugins/meme.js</a>, <a href="plugins_meme.js.html#line48">line 48</a>
</span>
</p>
</dl>
</div>
<div class="member">
<h4 class="name" id=".movie">
<a class="href-link" href="#.movie">#</a>
<span class='tag'>static</span>
<span class="code-name">
movie<span class="signature">(idChat, search, messageError, messageNoDataFound)</span><span class="type-signature"></span>
</span>
</h4>
<div class="description">
<p>Plugin that allows you to obtain movies to watch online in different qualities</p>
</div>
<h5>Parameters:</h5>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>idChat</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Chat id to send the new image to</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>search</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Movie to search</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageError</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of error</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageNoDataFound</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send when no movie is found</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="plugins_movies.js.html" class="button">View Source</a>
<span>
<a href="plugins_movies.js.html">plugins/movies.js</a>, <a href="plugins_movies.js.html#line137">line 137</a>
</span>
</p>
</dl>
</div>
<div class="member">
<h4 class="name" id=".music">
<a class="href-link" href="#.music">#</a>
<span class='tag'>static</span>
<span class="code-name">
music<span class="signature">(idChat, search, messageError, messageNoDataFound, messageValidClientId)</span><span class="type-signature"></span>
</span>
</h4>
<div class="description">
<p>Plugin to get a song in mp3 format directly from soundcloud</p>
</div>
<h5>Parameters:</h5>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>idChat</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Chat id to send the new image to</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>search</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Customer search parameter</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageError</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of error</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageNoDataFound</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of not finding information</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageValidClientId</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send when a clientId is not indicated in the initial configuration</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="https://soundcloud.com">SoundCloud</a></li>
</ul>
</dd>
<p class="tag-source">
<a href="plugins_music.js.html" class="button">View Source</a>
<span>
<a href="plugins_music.js.html">plugins/music.js</a>, <a href="plugins_music.js.html#line101">line 101</a>
</span>
</p>
</dl>
</div>
<div class="member">
<h4 class="name" id=".news">
<a class="href-link" href="#.news">#</a>
<span class='tag'>static</span>
<span class="code-name">
news<span class="signature">(idChat, search, messageError)</span><span class="type-signature"></span>
</span>
</h4>
<div class="description">
<p>Plugin to get news from the different rss sources that are configured</p>
</div>
<h5>Parameters:</h5>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>idChat</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Chat id to send the new image to</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>search</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Customer search parameter</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageError</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of error</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="plugins_news.js.html" class="button">View Source</a>
<span>
<a href="plugins_news.js.html">plugins/news.js</a>, <a href="plugins_news.js.html#line130">line 130</a>
</span>
</p>
</dl>
</div>
<div class="member">
<h4 class="name" id=".translate">
<a class="href-link" href="#.translate">#</a>
<span class='tag'>static</span>
<span class="code-name">
translate<span class="signature">(idChat, text, to, messageError)</span><span class="type-signature"></span>
</span>
</h4>
<div class="description">
<p>Plugin that allows you to translate the desired text into any language</p>
</div>
<h5>Parameters:</h5>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>idChat</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Chat id to send the new image to</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>text</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Text to translate</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>to</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Target language to translate</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageError</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of error</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="plugins_translate.js.html" class="button">View Source</a>
<span>
<a href="plugins_translate.js.html">plugins/translate.js</a>, <a href="plugins_translate.js.html#line10">line 10</a>
</span>
</p>
</dl>
</div>
<div class="member">
<h4 class="name" id=".wiki">
<a class="href-link" href="#.wiki">#</a>
<span class='tag'>static</span>
<span class="code-name">
wiki<span class="signature">(idChat, search, language, messageError, messageNoDataFound)</span><span class="type-signature"></span>
</span>
</h4>
<div class="description">
<p>Plugin that allows the search of different things in wikipedia</p>
</div>
<h5>Parameters:</h5>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>idChat</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Chat id to send the new image to</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>search</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Search parameter to perform</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>language</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Language in which to search</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageError</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of error</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageNoDataFound</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of not finding information</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="plugins_wiki.js.html" class="button">View Source</a>
<span>
<a href="plugins_wiki.js.html">plugins/wiki.js</a>, <a href="plugins_wiki.js.html#line93">line 93</a>
</span>
</p>
</dl>
</div>
<div class="member">
<h4 class="name" id=".youtube">
<a class="href-link" href="#.youtube">#</a>
<span class='tag'>static</span>
<span class="code-name">
youtube<span class="signature">(idChat, search, messageError, messageNoDataFound)</span><span class="type-signature"></span>
</span>
</h4>
<div class="description">
<p>Plugin that allows you to search for videos directly from YouTube</p>
</div>
<h5>Parameters:</h5>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>idChat</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Chat id to send the new image to</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>search</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Search parameter to perform</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageError</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of error</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageNoDataFound</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of not finding information</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="plugins_youtube.js.html" class="button">View Source</a>
<span>
<a href="plugins_youtube.js.html">plugins/youtube.js</a>, <a href="plugins_youtube.js.html#line20">line 20</a>
</span>
</p>
</dl>
</div>
<div class="member">
<h4 class="name" id=".zombie">
<a class="href-link" href="#.zombie">#</a>
<span class='tag'>static</span>
<span class="code-name">
zombie<span class="signature">(idChat, photo, messageError, messageNoFace, messageNoImage)</span><span class="type-signature"></span>
</span>
</h4>
<div class="description">
<p>Plugin that allows you to transform your selfie into a zombie</p>
</div>
<h5>Parameters:</h5>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>idChat</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Chat id to send the new image to</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>photo</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Url, path to base64 image</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageError</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of error</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageNoFace</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send when a face is not detected in the image</p></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code>messageNoImage</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>Message to send in case of not receiving an image</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="plugins_zombie.js.html" class="button">View Source</a>
<span>
<a href="plugins_zombie.js.html">plugins/zombie.js</a>, <a href="plugins_zombie.js.html#line12">line 12</a>
</span>
</p>
</dl>
</div>
</div>
</div>
</article>
</section>
</div>
<footer class="footer">
<div class="content has-text-centered">
<p>Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a></p>
<p class="sidebar-created-by">
<a href="https://github.com/SoftwareBrothers/better-docs" target="_blank">BetterDocs theme</a> provided with <i class="fas fa-heart"></i> by
<a href="http://softwarebrothers.co" target="_blank">SoftwareBrothers - JavaScript Development Agency</a>
</p>
</div>
</footer>
</div>
<div id="side-nav" class="side-nav">
</div>
</div>
<script src="scripts/app.min.js"></script>
<script>PR.prettyPrint();</script>
<script src="scripts/linenumber.js"> </script>
<script src="scripts/search.js"> </script>
</body>
</html>