Simple Chat Bot with smart Ai supported by regexp in every one of his dictionaries Built Using Bash 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:
{
"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