๐ Modular | ๐ค AI-Powered | ๐ผ๏ธ Media Tools | ๐ฎ Fun & Games |
---|---|---|---|
Plugin Architecture | Multi-Model AI | Image Processing | Interactive Games |
Easy Integration | Smart Responses | PDF Conversion | Group Management |
Custom Commands | Context Aware | Media Generation | Analytics & Logs |
Kebutuhan | Versi |
---|---|
Node.js | v14 atau lebih tinggi |
NPM/Yarn | Versi terbaru |
Akun aktif | |
API Keys | Lihat konfigurasi |
- Clone the repository
git clone https://github.com/idlanyor/kanata-v2.git
cd kanata-v2
- Install dependencies
npm install
# or using yarn
yarn install
-
Configure the bot
- Rename
global.example.js
toglobal.js
- Fill in your API keys and configuration
- Rename
-
Start the bot
npm start
# or using yarn
yarn start
Copy globalThis.example.js
to globalThis.js
and configure your settings:
// Basic configuration
globalThis.owner = "YOUR_NAME";
globalThis.ownerNumber = ["YOUR_NUMBER","SECOND_NUMBER"]
globalThis.botNumber = ""
globalThis.botName = "Kanata"
globalThis.sessionName = 'kanata-bot'
globalThis.groupJid = '0@g.us'
globalThis.communityId = '0@g.us'
globalThis.newsLetterJid = '0@newsletter'
globalThis.newsLetterUrl = 'https://whatsapp.com/channel/0029VagADOLLSmbaxFNswH1m'
globalThis.kanataThumb = 'https://files.catbox.moe/2wynab.jpg'
// Basic functions
globalThis.isOwner = (notel) => {
return globalThis.ownerNumber.includes(notel)
}
globalThis.isBot = async (notel) => {
return notel === botNumber
}
globalThis.isGroup = async (jid) => {
return jid.endsWith('@g.us')
}
// API keys
globalThis.apiKey = {
gemini: '',
removeBG: '',
llama: '',
groq: '',
pdf: {
secret: '',
public: ''
}
}
globalThis.hikaru = 'https://api.fasturl.link/'
// Paired API keys with baseurl
globalThis.apiHelper = {
medanpedia: {
baseurl: 'https://api.medanpedia.co.id/',
apiId: '',
apiKey: ''
},
lolhuman: {
apikey: '',
baseUrl: 'https://api.lolhuman.xyz/api/'
},
neoxr: {
apikey: '',
baseUrl: 'https://api.neoxr.eu/api/'
},
ryzen: {
apikey: '',
baseUrl: 'https://api.ryzendesu.vip/api/'
},
fastapi: {
apikey: '',
baseUrl: 'https://api.fasturl.link/'
},
betabotz: {
apikey: '',
baseUrl: 'https://api.betabotz.eu.org/api/'
},
skizotech: {
apikey: '',
baseUrl: 'https://skizoasia.xyz/api/'
},
nyxs: {
apikey: '',
baseUrl: 'https://api.nyxs.pw/'
}
}
Kanata integrates with multiple powerful APIs to provide enhanced functionality:
- ๐ง Google Generative AI - Advanced language processing
- โก Groq - Fast AI inference
- ๐ค Llama - Open-source AI model
- ๐ Hikaru AI LLM
- ๐ผ๏ธ RemoveBG - Background removal
- ๐ ILovePDF - PDF manipulation
- ๐จ Hikaru - AI Media conversion
- ๐ Hikaru FastURL
- โก Ryzen Api
- ๐ ๏ธ BetaBotz
- ๐ง SkizoTech
Roynaldi |
Puan Mahalini |
This project is licensed under the MIT License - see the LICENSE file for details.
Made with โค๏ธ by Roy