Giter Site home page Giter Site logo

learnerbot's Introduction

learnerBot

  • make and use bots with personalities, using shared knowledge

info

  • currently, its very basic
  • one of five personalities will be generated for the bot, if an existing id isn't supplied
  • the chatbot folder is where the bot class file (chatbot.py) and database (knowledge.db) is stored
  • chatbot can be imported to python files as normal (from chatbot.chatbot import Bot)
  • chatbot_gui.py is an example of how the bot could be used in chat format with a GUI
  • see https://github.com/ge0metrics/learnerBot/projects/2 for updates and progress tracking
  • feel free to contribute, my coding style isn't perfect and this is my first complex project, so support is welcome :)

current methods

  • myBot=Bot() initialize the bot
    • id=4 initialize a bot with an id
    • debug=True initializes bot in debug mode
  • myBot.speak() returns the bot to saying something
    • length="short" or length="medium" random length sentence if not supplied
  • myBot.ask() returns the bot asking something
  • myBot.greet() returns the bot's greeting
    • mode="respond" returns answer to "what's up" style questions
  • myBot.reply(message) analyses user messages to try and give a related reply
  • myBot.laugh() returns the bot's laugh according to its personality

learnerbot's People

Contributors

ge0metrics avatar

Watchers

James Cloos avatar

learnerbot's Issues

reply conflict

"replies are analysed dynamically instead of checking for every kind of message" code conflicted and wasn't saved

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.