An open API service indexing awesome lists of open source software.

https://github.com/kilicdev/smart-chatbot

Official smart-chatbot Package!
https://github.com/kilicdev/smart-chatbot

bot chatbot javascript nodejs npm-package

Last synced: 2 days ago
JSON representation

Official smart-chatbot Package!

Awesome Lists containing this project

README

          

Discord

# smart-chatbot

**Javascript:**
```js
const chatbot = require("smart-chatbot");
const chatclient = new chatbot.Client({
secretkey: "SECRET KEY",
botname: "BOT NAME",
ownername: "OWNER NAME",
gender: "female", // (female/male)
birth: "https://csycraft.com",
location: "https://csybot.csycraft.com",
email: "brain@csycraft.com"
});

chatclient.chat({
message: "Hello",
user: "SECRET USER ID",
language: "tr" // (tr, en, pt) for more dm me
}).then(answer => console.log(answer));
```

**Aoi.js & Dbd.js:**
```js
bot.command({
name: "$alwaysExecute",
code: `$djsEval[
const chatbot = require("smart-chatbot")
const chatclient = new chatbot.Client({
secretkey: "SECRET KEY",
botname: "BOT NAME",
ownername: "OWNER NAME",
gender: "female", // (female/male)
birth: "https://csycraft.com",
location: "https://csybot.csycraft.com",
email: "brain@csycraft.com"
});
let question = message.content.split(" ").slice(1).join(" ");
if(!question || String(question) == String([])) {
message.channel.send("❌ Please Message ❌");
} else {
chatclient.chat({
message: question,
user: message.author.id,
language: "tr" // (tr, en, pt) for more dm me
}).then(x => message.channel.send(x)).catch(err => message.channel.send("ERR API Problem!"));
}]
$onlyIf[$mentioned[1]==$clientID;]
`
});
```

**Bdfd API (BDSCRPT 2):**
```txt
$nomention
$botTyping
$try
$httpAddHeader[Authorization;SECRET_KEY]
$httpAddHeader[Version;1.3.0]
$httpAddHeader[using;bdfd]
$httpGet[https://api.csycraft.xyz/chatbot?user=$authorID&language=tr&botname=CsYBot&message=$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$message;ı;i];ö;o];ğ;g];ü;u];ç;c];ş;s]]
$httpResult[message]
$catch
Sorry I couldn't answer.
$endtry
$argsCheck[>1;Please Enter Message]
```

**What is SECRET KEY?**

For Secret Key Join Server: https://discord.gg/gkmwaAZQBu