# leyna-ai

> Leyna-AI is a quick way to easily make your own Chat Bot which can reply in multiple languages!

Latest version **2.0.2** (published 2021-05-27) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install leyna-ai
pnpm add leyna-ai
yarn add leyna-ai
bun add leyna-ai
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2021-05-27 |
| First published | 2021-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | RubyDevil |
| Maintainers | rubydevil |

## Links

- npm: https://www.npmjs.com/package/leyna-ai
- npm.io page: https://npm.io/package/leyna-ai

## Dependencies (4)

- [md5](https://npm.io/package/md5.md) ^2.3.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1
- [superagent](https://npm.io/package/superagent.md) ^6.1.0
- [@iamtraction/google-translate](https://npm.io/package/@iamtraction/google-translate.md) ^1.1.2

## Recent versions

- 2.0.2 (latest) — 2021-05-27
- 2.0.1 — 2021-05-27

## README

# Leyna-AI

Leyna-AI is a quick way to easily make your own Chat Bot which can reply in multiple languages!

#

# Quick Example
 
**Javascript:**
```js
// Import Package
const Leyna = require('smartestchatbot')

const AI = new Leyna.AI()

AI.chat({message:"Hello, How are you?", name:"SmartestChatbot", owner:"CoolOwnerName", user: Cooluniqueuserid-in-number, language:"CoolLanguage"}).then(reply => {
console.log(reply)
// The module will reply based on the message!
})

// Or you can even try the 2nd chatbot module!

AI.cleverchat({message:"Hello, How are you?", language:"CoolLanguage"}).then(reply => {
console.log(reply)
// The module will reply based on the message!
})
```

> # A clean and tidy list of the currently supported languages:
```
    "auto": "Automatic",
    "af": "Afrikaans",
    "sq": "Albanian",
    "am": "Amharic",
    "ar": "Arabic",
    "hy": "Armenian",
    "az": "Azerbaijani",
    "eu": "Basque",
    "be": "Belarusian",
    "bn": "Bengali",
    "bs": "Bosnian",
    "bg": "Bulgarian",
    "ca": "Catalan",
    "ceb": "Cebuano",
    "ny": "Chichewa",
    "zh-cn": "Chinese Simplified",
    "zh-tw": "Chinese Traditional",
    "co": "Corsican",
    "hr": "Croatian",
    "cs": "Czech",
    "da": "Danish",
    "nl": "Dutch",
    "en": "English",
    "eo": "Esperanto",
    "et": "Estonian",
    "tl": "Filipino",
    "fi": "Finnish",
    "fr": "French",
    "fy": "Frisian",
    "gl": "Galician",
    "ka": "Georgian",
    "de": "German",
    "el": "Greek",
    "gu": "Gujarati",
    "ht": "Haitian Creole",
    "ha": "Hausa",
    "haw": "Hawaiian",
    "iw": "Hebrew",
    "hi": "Hindi",
    "hmn": "Hmong",
    "hu": "Hungarian",
    "is": "Icelandic",
    "ig": "Igbo",
    "id": "Indonesian",
    "ga": "Irish",
    "it": "Italian",
    "ja": "Japanese",
    "jw": "Javanese",
    "kn": "Kannada",
    "kk": "Kazakh",
    "km": "Khmer",
    "ko": "Korean",
    "ku": "Kurdish (Kurmanji)",
    "ky": "Kyrgyz",
    "lo": "Lao",
    "la": "Latin",
    "lv": "Latvian",
    "lt": "Lithuanian",
    "lb": "Luxembourgish",
    "mk": "Macedonian",
    "mg": "Malagasy",
    "ms": "Malay",
    "ml": "Malayalam",
    "mt": "Maltese",
    "mi": "Maori",
    "mr": "Marathi",
    "mn": "Mongolian",
    "my": "Myanmar (Burmese)",
    "ne": "Nepali",
    "no": "Norwegian",
    "ps": "Pashto",
    "fa": "Persian",
    "pl": "Polish",
    "pt": "Portuguese",
    "pa": "Punjabi",
    "ro": "Romanian",
    "ru": "Russian",
    "sm": "Samoan",
    "gd": "Scots Gaelic",
    "sr": "Serbian",
    "st": "Sesotho",
    "sn": "Shona",
    "sd": "Sindhi",
    "si": "Sinhala",
    "sk": "Slovak",
    "sl": "Slovenian",
    "so": "Somali",
    "es": "Spanish",
    "su": "Sundanese",
    "sw": "Swahili",
    "sv": "Swedish",
    "tg": "Tajik",
    "ta": "Tamil",
    "te": "Telugu",
    "th": "Thai",
    "tr": "Turkish",
    "uk": "Ukrainian",
    "ur": "Urdu",
    "uz": "Uzbek",
    "vi": "Vietnamese",
    "cy": "Welsh",
    "xh": "Xhosa",
    "yi": "Yiddish",
    "yo": "Yoruba",
    "zu": "Zulu"
```

**NOTE: 
Currently Leyna uses the google translate api to translate the message's as google has heavy rate limits for text make sure to not send responses too quickly if language is not set to `en`.**

# Credits
 
Made by RubyDevil.

> Report your Issues in the GitHub Repo Issues or join the Discord Server and directly report your Issue!
### Support Discord Servers
<a href="https://discord.gg/anyF4j3MUu"><img src="https://invidget.switchblade.xyz/anyF4j3MUu"/></a>
<br><br>
<a href="https://discord.gg/SnjkPDakkM"><img src="https://invidget.switchblade.xyz/SnjkPDakkM"/></a>
<br><br>
</div>

---
_Source: https://npm.io/package/leyna-ai · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
