Skip to content

About

simple Ai chat built with bash

Resources

Stars

4 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bot Chat MD



Simple Chat Bot with smart Ai supported by regexp in every one of his dictionaries Built Using Bash Script

How to use in your script

source <(lib/moduler.sh)

Namespace Std :: Sys;{
  { @require __main__.bot; };{ eval shell.ai; }
}; eval Assistent.config="https://raw.githubusercontent.com/Bayu12345677/Bot-ChatMd/master/config.json" Debug=False

until false; do
  read -p "You : " user
  var get::response::user = $(Assistent.ambil_input sender="$user")
  # print respon
  @return: [get::respon::user]
done

Fungsi:


  • Assistent (nama class)
  • config Intents="#config.json / url raw" Debug=#Boolean (object config bot chat)
  • ambil_input sender="#args" (object: berfungsi untuk mengambil reply dari user)

  • simple config.json

    {
      "config":[
        {
          "msg1":[
            "reply":["h(a|e)lo$", "(hello|halo)[[:space:]](bro|dude|bre)$"],
            "send":["helo human", "yo whatshup bro"]
          ],
          "msg2":["reply":["siapa namamu$", "siapa nama (ente|anda|kamu)$", "what is your name$"],"send":["nama saya adalah Aldo", "nama antum adalah Aldo", "My name is Aldo"]],
          "msg3":["reply":["date$", "tanggal$"],"send":["now is date $(date +%d/%m/$y)"]]
        }
      ]
    }

    requirement : apt install ossp-uuid jq curl tree work on termux

    berhasil di termux

    About

    simple Ai chat built with bash

    Resources

    Stars

    4 stars

    Watchers

    0 watching

    Forks

    Releases

    Packages

    Contributors

    Languages