Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Project in "Artificial Intelligence" course at the University of Tartu.

Notifications You must be signed in to change notification settings

andrijasinski/GooglendarBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GooglendarBot

This repository contains source code for the project in "Artificial Intelligence" course at the University of Tartu.

Description:

This project is a part of "Artificial Intelligence" course. Our chatbot allows you to get information about your plans/events in Google Calendar just by asking "What are my plans for tomorrow?" or any other question, containing keyword corresponding to your needs (more about that in "How to use" section). Fortunately, with this chatbot, you can play checkers in case you get bored. Just type "!checkers" and enjoy!

Authors:

Requirements:

  • Python
  • PIP package manager
  • IDE or command line

NB! PIP comes pre-installed with Python versions 2.7.9 and 3.4

Installation:

If you have freshly pulled the source code from the repository you will need to install external packages by running:

$ cd AI2017HW7
$ pip install -r requirements.txt

How to run:

NB! Entering "src" directory is required for application stable work.

CLI:

$ cd src
$ python chatterbot.py

GUI:

$ cd src
$ python chatterbot_gui.py

How to use:

Greeting

Chatbot can ask you for your name and greet you with that.

Example:

Arvuti: Tere, mina olen juturobot-sekretär.
Kasutaja: Mina olen Andri
Arvuti: Tere Andri, meeldiv tutvuda.

Fetching data from Google Calendar

Chatbot searches for keywords to find the day you need information about.

Lists of keywords:

>>> EVENT = ["plaanid", "plaan", "plan", "tegevus", "tegevused", "teen"]
>>> DAYS = ["täna", "homme", "ülehomme", "esmaspäev", "teisipäev", "kolmapäev", "neljapäev", "reede", "laupäev", "pühapäev"]

Example:

Arvuti: Tere, mina olen juturobot-sekretär.
Kasutaja: Mis on minu plaanid teisipäeval?
Arvuti: Teisipäeval plaanis on järgmised üritused:
Kell 10:15 toimub "Agile software development exam", mis kestab kuni 14:00, aadressil Juhan Liivi 2.

Special commands

Chatbot understands several special commands, that starts with "!" followed by keyword.

Commands:

  • !logout - logout and delete all credentials
  • !checkers OR !kabe - play checkers with AI

NB! This repository contains code for GUI solutions ("chatterbot_gui.py", "checkers,py") provided by "Artificial Intelligence" course teaching staff.

About

Project in "Artificial Intelligence" course at the University of Tartu.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages