Skip to content

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

License

Notifications You must be signed in to change notification settings

Bayu12345677/Bot-ChatMd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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 <(cat lib/moduler.sh)

Namespace Std :: Sys;{
  { @require __main__.bot; };{ eval shell.ai; }
}; eval Assistent.config Intents="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

    berhasil di termux

    About

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

    Resources

    License

    Stars

    Watchers

    Forks

    Packages

    No packages published

    Languages