https://github.com/itspranavajay/kuki-bot-api
A very lightweight and chatbot with multi language support
https://github.com/itspranavajay/kuki-bot-api
ai chatbot javascript js kuki npmjs-packages
Last synced: about 1 month ago
JSON representation
A very lightweight and chatbot with multi language support
- Host: GitHub
- URL: https://github.com/itspranavajay/kuki-bot-api
- Owner: itspranavajay
- License: mit
- Created: 2021-09-21T06:18:32.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-27T18:18:17.000Z (almost 4 years ago)
- Last Synced: 2025-07-03T20:54:22.188Z (5 months ago)
- Topics: ai, chatbot, javascript, js, kuki, npmjs-packages
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 8
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
KUKI-BOT-API
### Enjoying kuki-bot-api?
**Developers**:
[Nksama](https://github.com/nksama) -
[Telegram](https://t.me/NksamaX)
[Pranav Ajay](https://github.com/Moezilla)
Discord: MoeZilla#4285
Telegram: PranavAjay
## Simple Example
```
const Kukibot = require("kuki-bot-api");
const kukiai = new Kukibot({name: "Pranav", owner: "MoeZilla"});
kukiai.moe("Hi").then(console.log)
```
## Discord Example:
```
const discord = require("discord.js");
const client = new discord.Client();
const Kukibot = require("kuki-bot-api");
const token = ''; // your discord bot token
const kukiai = new Kukibot({name: "Pranav", owner: "MoeZilla"});
client.on("message", async message => {
if (message.author.bot) return;
let content = message.content;
kukiai.moe(content).then(reply =>
message.channel.send(reply, {
})
);
});
client.login(token);
```
## Async / Await
```
const Kukibot = require("kuki-bot-api");
const kukiai = new Kukibot({name: "Pranav", owner: "MoeZilla"});
async function main() {
const msg = await kukiai.moe("Hi");
console.log(msg);
}
main();
```
## Instagram Example
```
const Insta = require('@androz2091/insta.js');
const client = new Insta.Client();
const fetch = require("node-fetch");
const Kukibot = require("kuki-bot-api");
const kukiai = new Kukibot({name: "Pranav", owner: "MoeZilla"});
client.on("messageCreate", async message => {
if (message.author.id === client.user.id) return;
message.markSeen();
let content = message.content;
if(!content) return;
kukiai.moe(content).then(r => message.reply(r));
});
client.login('username', 'password');
```