Giter VIP home page Giter VIP logo

bot-chatmd's Introduction

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

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google โค๏ธ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.