Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A01639664-homework-07 #196

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

josecarlosmemo
Copy link

Overview

The ChatBot was enhanced with the following features:

  • It has the ability to fetch the weather at your location.
  • It can fetch the weather for various cities.
  • You can ask the ChatBot about his name.
  • It can perform simple 2-term mathematical expressions.

Some cool things to try are:

  • what is the weather
  • weather in London
  • what is your name
  • 2 + 2

Dependencies

The main dependencies for running the ChatBot are flex, bison, make and the library curl.h

Assuming flex, bison and make are already installed you might need to download curl.h which can be done like so:

# Mac OS
brew install curl  # (most likely already pre-installed)

# Debian/Ubuntu-based distributions
sudo apt-get install libcurl4-openssl-dev

# CentOS/RHEL-based distributions
sudo yum install libcurl-devel

Running the ChatBot

Once all dependencies are installed, you only need to run make in the directory that contains the files. This will create the interactive chatbot executable. You can run by executing ./chatbot.

Also included with these changes are an example input and output files. These are used in order to automatically test the ChatBot, if you want to test just run make test, it'll provide you a diff of the expected output with the actual output of the ChatBot.

Note: This program is unable to run in linuxzoo.net as it's accessing an external web api and gets blocked.

Signed-off-by: josecarlosmemo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant