Git Product home page Git Product logo

bot.py's Introduction

The Python 'chat bot'

Disclaimer: This is not a chat bot in it's full capability and is just a trial of the data-structures and algorithms I have learnt.

As far as I can simplify it. This is a use of some of the more common features of Python's many data-structures in order to build a program that has set answers to user question and as an added bonus lets the user train it by supplying it with sample 'ideal' answers to it's questions.

What this repo contains

This repo has 6 files along with the README you are viewing. They are:

  • bot.py : The file which contains the defintion of the bot class.
  • main.py : The file which initializes an object of the bot class and uses it to run a chat-bot interface.
  • memory.db : The memory of all questions and their assosciated answers, as accessed by the bot class using python file management.
  • joke.db : The list of jokes which can be accessed by the joke function, defined in bot.py.
  • trivia.db : A list of facts accessible to the trivia function for quiz time, defined in bot.py.
  • Screenshot.png : The ideal situation this program is running in. Within Ubuntu 17.10.

Ideal Run

When the program is run perfectly, you can expect the following result The perfect running demo of bot.py

I have uploaded this project here to give you an idea as to how I go about my development process. Make yourself a help and don't copy this code for the purpose of submission. You will be plaguiarising my work. Also a piece of advice, always mention the author, even if you don't copy it completely. ;)

bot.py's People

Contributors

de-sh avatar

Watchers

James Cloos 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.