Skip to content

Bot Whatsapp Kanata Versi Plugin(not as nesting if else/switch case)

License

Notifications You must be signed in to change notification settings

idlanyor/kanata-v2

Repository files navigation

Little Kanata

by Roy

GitHub repo size GitHub stars GitHub license

Kanata

This is a project that demonstrates how to use plugin modular stucture to make a Bot Whatsapp using Baileys

Requirements

In order to run this project, you will need to have Node.js and NPM installed on your system.

Installation

To install the required dependencies, run the following command in your terminal:

npm install

Usage

To use this project, you will need to set up a Various API key. You can do this by renaming a file called globalThis.example.js to globalThis.js in the root directory of the project and adding the following code to it:

// variabel dasar
globalThis.owner = "Roynaldi";
globalThis.botName = "Sonata Bot";
globalThis.ownerNumber = ""
globalThis.botNumber = ""
globalThis.sessionName = 'kanata-bot'

// fungsi dasar
globalThis.isOwner = (id) => {
    return id === globalThis.ownerNumber
}
globalThis.isBot = async (id) => {
    return id === botNumber
}

// variabel apikey
globalThis.apiKey = {
    gemini: '',
    gpt: '',
    mistral: '',
    removeBG: '',
    groq: '',
    pdf: {
        secret: '',
        public: ''
    }
}

// variabel paired apikey with baseurl
globalThis.apiHelper = {
    medanpedia: {
        apiId: '',
        apiKey: ''
    },
    lolhuman: {

        apikey: '',

        baseUrl: 'https://api.lolhuman.xyz/api/'

    },

    betabotz: {

        apikey: '',

        baseUrl: 'https://api.betabotz.eu.org/api/'

    },

    skizotech: {

        apikey: '',

        baseUrl: 'https://skizo.tech/api/'

    },
    nyxs: {
        apikey: '',
        baseUrl: 'https://api.nyxs.pw/api/'
    }

}

Replace all value wit your own.

After that, you can start the project by running the following command in your terminal:

npm start

License

This project is licensed under the MIT License - see the LICENSE file for details.

Api Used

Contributors

About

Bot Whatsapp Kanata Versi Plugin(not as nesting if else/switch case)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published