Giter Site home page Giter Site logo

bob's Introduction

Bob [^_^]

A tragicomic chat bot

Bob used to be a lackadaisical teenager and was born in a Code Kata. In conversation, his responses were limited:

  • Bob answers "Sure." if you asked him a question.
  • He answers "Whoa, chill out!" if you YELLED AT HIM.
  • He used to answer "Calm down, I know what I'm doing!" if you yelled a question at him.
  • He says "Fine. Be that way!" if you addressed him without actually saying anything.

Now Bob quotes from Samuel Beckett’s Waiting for Godot in most of the cases.

How to run

dependencies:

Both PhpUnit and PhpSpec are included in composer.json:

$ composer install

Usage

In the root directory type:

  php bobtalk.php

and have elementary conversations with Bob such as:

Screenshot 2020-11-28 at 16 31 34

Maybe in the future, Bob will be able to use normalized data such as

You could then initialize him with an argument author and make him quote Albert Einstein, Toni Morrison, Douglas Adams or whoever is your favourite author.

How to test

Dependencies:

Run test suites in in root directory

$ vendor/bin/phpspec run
$ vendor/bin/phpunit tests --testdox --colors

Run phpunit code coverage

$ vendor/bin/phpunit tests --coverage-text

bob's People

Contributors

alexandrajulius avatar

Watchers

 avatar

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.