Code Monkey home page Code Monkey logo

basicchatbot's Introduction

This is a basic chat bot that takes any string as an input, learns how to respond to it in an sqlite database if it hasn't seen it before, and then uses the learned response to respond to similar future query.

run the bot with

python basic_io_bot.py -db xxx.sqlite

where xxx is the name of the existing sqlite database it should connect to, if not it will make julio_bot.sqlite

Provide your own bot token for your bot from botfather!

References

source: https://www.codementor.io/python/tutorial/building-a-telegram-bot-using-python-part-1. It walks you through building an echobot (a bot that echoes your messages back to you) from scratch using Python and Telegram.

Part 2 of the tutorial shows you how to add a database to your chatbot so that it can have long-term memory. As an example, we build a basic To Do list that allows users to add and remove text items.

Part 3 of the tutorial will be in the form of a live office hour video where I show how to deploy the bot to a VPS.

basicchatbot's People

Contributors

hernandope 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.