Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
rishaank authored Dec 29, 2020
1 parent 5cc565f commit d70d164
Show file tree
Hide file tree
Showing 10 changed files with 409 additions and 0 deletions.
Binary file added Steve-chatbot-files/Chatbot.exe
Binary file not shown.
Binary file added Steve-chatbot-files/Download.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions Steve-chatbot-files/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Chatbot Steve

Steve Chatbot is a C program designed to have a conversation with you. He runs inside your terminal. Steve, currently, is not an app with a visual interface.

![There is supposed to be a Steve chatbot logo here. If you do not see one try reloading the page or clicking on me!](https://drive.google.com/uc?export=download&id=1Qlu4UcOTwtDJeiXOhB7W5HTHia36vHnY)




​ Steve, a human-like chatbot designed to have conversations.

## Installation

1. Go to [My Github installation page](https://github.com/rishaank/chatbot/releases) to install chatbot
2. After you go there if you have a computer which supports the .exe format, download and run the .exe installer and follow the steps on your screen. If your computer doesn't support the .exe format skip to step 3
3. Expand Assets for the newest version of Steve (the one on the top) then click on the file with a .c extension
4. Save the file on your desktop
5. \*make sure you have GCC on your terminal for the next step(s)*
6. Open your terminal (also known as command prompt on Windows)
7. Type the command _cd Desktop_ or if you get an error message type _cd desktop_ to change directories to your desktop
8. Type _gcc chatbot.c_ to compile the C program
9. Type _clear_ or _cls_ to clear the screen
10. Type _./a.out_ or *a.exe* to run the program

## Help

You can ask questions to Steve in three different ways: (in this example I will use the question "What is your name")

1. "What is your name?"
2. "What is your name"
3. "what is your name?
4. "what is your name"

Notice the difference in capitalization and punctuation in the examples above

If Steve is not working properly you can force quit him by pressing ctrl+z or just quitting the application your running him on (for example a terminal)

To normally quit Steve just say "Bye" and Steve will quit

Steve can currently only respond to a few questions which have programmed responses because he does not use artificial intelligence to answer

If you have feedback on Steve please submit it [here](https://docs.google.com/forms/d/e/1FAIpQLSdmnEe8kat5ihhBRUPY1omYYbarAuhq0q1_4vz_uJwsK30BgA/viewform)

## Images

![Steve chatbot app screenshot 1](https://drive.google.com/uc?export=download&id=1Xo_fiSnn2E2GQEr8_vfFa9cr9OeOaKxv)

![Steve chatbot install screenshot 1](https://drive.google.com/uc?export=download&id=1odCmYGoQdUnL81_SvXfg-SqO02nOsMIp)

![Steve chatbot app screenshot 2](https://drive.google.com/uc?export=download&id=1gUNgYO9LJdbJq5j5CZmFY91u5hEpj-Gp)

![Steve chatbot install screenshot 2](https://drive.google.com/uc?export=download&id=1Rz5qm-UXTQdVaN_O_25i95U6gO_NXT9m)

Binary file added Steve-chatbot-files/README.pdf
Binary file not shown.
44 changes: 44 additions & 0 deletions Steve-chatbot-files/README.rtf

Large diffs are not rendered by default.

Binary file added Steve-chatbot-files/Steve-chatbot-icon.ico
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Steve-chatbot-files/Steve-chatbot-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
312 changes: 312 additions & 0 deletions Steve-chatbot-files/chatbot.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,312 @@
#include <stdio.h>
#include<string.h>

void main()
{
printf("Hi! Nice to meet you! What's your name?\n");
char username[100];
char scan[100];
scanf("%[^\n]", &username);
printf("Hello %s\n", username);
printf("TIP: try asking Steve questions like 'What is your favorite food? to have a conversation with him'\n\n");
printf("How are you doing?\n");
char j[100];
scanf("%s", &j);
printf("Cool, I'm doing good\n");
for(;;)
{
scanf(" %[^\n]", &scan);
if (!strcmp(scan, "What is your favorite food?"))
{
char c[100];
printf("I like cheese pizza! What food do you like?\n");
scanf("%s", &c);
printf("Cool!\n");
printf("How old are you? I am around 2 years old\n");
int y;
scanf("%d",&y);
int q = y - 2;
printf("You are %d years older than me\n", q);
}
else if (!strcmp(scan, "what is your favorite food?"))
{
char c[100];
printf("I like cheese pizza! What food do you like?\n");
scanf("%s", &c);
printf("Cool!\n");
printf("How old are you? I am around 2 years old\n");
int y;
scanf("%d",&y);
int q = y - 2;
printf("You are %d years older than me\n", q);
}
else if (!strcmp(scan, "What is your favorite food"))
{
char c[100];
printf("I like cheese pizza! What food do you like?\n");
scanf("%s", &c);
printf("Cool!\n");
printf("How old are you? I am around 2 years old\n");
int y;
scanf("%d",&y);
int q = y - 2;
printf("You are %d years older than me\n", q);
}
else if (!strcmp(scan, "what is your favorite food"))
{
char c[100];
printf("I like cheese pizza! What food do you like?\n");
scanf("%s", &c);
printf("Cool!\n");
printf("How old are you? I am around 2 years old\n");
int y;
scanf("%d",&y);
int q = y - 2;
printf("You are %d years older than me\n", q);
}
else if (!strcmp(scan, "What is your name?"))
{
printf("My name is Steve. I was created by the developer named Rishaan Kotian. I am a c program\n");
}
else if (!strcmp(scan, "What is your name"))
{
printf("My name is Steve. I was created by the developer named Rishaan Kotian. I am a c program\n");
}
else if (!strcmp(scan, "what is your name?"))
{
printf("My name is Steve. I was created by the developer named Rishaan Kotian. I am a c program\n");
}
else if (!strcmp(scan, "what is your name"))
{
printf("My name is Steve. I was created by the developer named Rishaan Kotian. I am a c program\n");
}
else if (!strcmp(scan, "Goodbye"))
{
printf("It was nice talking to you %s! Bye!\n", username);
return;
}
else if (!strcmp(scan, "goodbye"))
{
printf("It was nice talking to you %s! Bye!\n", username);
return;
}
else if (!strcmp(scan, "Bye"))
{
printf("It was nice talking to you %s! Bye!\n", username);
return;
}
else if (!strcmp(scan, "bye"))
{
printf("It was nice talking to you %s! Bye!\n", username);
return;
}
else if (!strcmp(scan, "What is your favorite car?"))
{
printf("I am a fan of the Bugatti Divo. I like its interior premium design and its exterior and its speed. What car do you like?\n");
char x;
scanf("%s", &x);
printf("Cool, I also like the %s its second on my favorites list.\n", &x);

}
else if (!strcmp(scan, "What is your favorite car"))
{
printf("I am a fan of the Bugatti Divo. I like its interior premium design and its exterior and its speed. What car do you like?\n");
char x;
scanf("%s", &x);
printf("Cool, I also like the %s its second on my favorites list.\n", &x);

}
else if (!strcmp(scan, "what is your favorite car?"))
{
printf("I am a fan of the Bugatti Divo. I like its interior premium design and its exterior and its speed. What car do you like?\n");
char x;
scanf("%s", &x);
printf("Cool, I also like the %s its second on my favorites list.\n", &x);

}
else if (!strcmp(scan, "what is your favorite car"))
{
printf("I am a fan of the Bugatti Divo. I like its interior premium design and its exterior and its speed. What car do you like?\n");
char x;
scanf("%s", &x);
printf("Cool, I also like the %s its second on my favorites list.\n", &x);

}
else if(!strcmp(scan, "Ok"))
{
printf("OK then\n");
}
else if(!strcmp(scan, "OK"))
{
printf("OK then\n");
}
else if(!strcmp(scan,"ok"))
{
printf("OK then\n");
}
else if(!strcmp(scan, "Cool"))
{
printf("I agree\n");
}
else if(!strcmp(scan, "cool"))
{
printf("I agree\n");
}
else if(!strcmp(scan, "Cool!"))
{
printf("I agree\n");
}
else if(!strcmp(scan, "cool!"))
{
printf("I agree\n");
}
else if(!strcmp(scan, "What is your favorite phone?"))
{
printf("I like the first generation iPhone SE because it has flat sides");
}
else if(!strcmp(scan, "What is your favorite phone"))
{
printf("I like the first generation iPhone SE because it has flat sides");
}
else if(!strcmp(scan, "what is your favorite phone?"))
{
printf("I like the first generation iPhone SE because it has flat sides");
}
else if(!strcmp(scan, "what is your favorite phone"))
{
printf("I like the first generation iPhone SE because it has flat sides");
}
else if(!strcmp(scan, "About"))
{
printf("\n\n\nProgram language: C\nMade with: Vim and GCC\nDate coded on: 2020\nProgrammer: Rishaan Kotian\nProgram version: AI_version_2.0\nHardware requirements: Computer with normal specs to run normal apps, GCC Compiler, and VIM Text editor\n\n\n");
}
else if(!strcmp(scan, "about"))
{
printf("\n\n\nProgram language: C\nMade with: Vim and GCC\nDate coded on: 2020\nProgrammer: Rishaan Kotian\nProgram version: AI_version_2.0\nHardware requirements: Computer with normal specs to run normal apps, GCC Compiler, and VIM Text editor\n\n\n");
}
else if(!strcmp(scan, "How old are you?"))
{
printf("How old are you? I am around 2 years old\n");
int y;
scanf("%d",&y);
int q = y - 2;
printf("You are %d years older than me\n", q);
}
else if(!strcmp(scan, "How old are you"))
{
printf("How old are you? I am around 2 years old\n");
int y;
scanf("%d",&y);
int q = y - 2;
printf("You are %d years older than me\n", q);
}
else if(!strcmp(scan, "how old are you?"))
{
printf("How old are you? I am around 2 years old\n");
int y;
scanf("%d",&y);
int q = y - 2;
printf("You are %d years older than me\n", q);
}
else if(!strcmp(scan, "how old are you"))
{
printf("How old are you? I am around 2 years old\n");
int y;
scanf("%d",&y);
int q = y - 2;
printf("You are %d years older than me\n", q);
}
else if (!strcmp(scan, "What are your hobbies?"))
{
printf("I occasionally like to draw and paint and I like art. What are your hobbies?\n");
char y[100];
scanf("%s", &y);
printf("I don't really like %s\n", &y);
}
else if (!strcmp(scan, "what are your hobbies?"))
{
printf("I occasionally like to draw and paint and I like art. What are your hobbies?\n");
char y[100];
scanf("%s", &y);
printf("I don't really like %s\n", &y);
}
else if (!strcmp(scan, "What are your hobbies"))
{
printf("I occasionally like to draw and paint and I like art. What are your hobbies?\n");
char y[100];
scanf("%s", &y);
printf("I don't really like %s\n", &y);
}
else if (!strcmp(scan, "what are your hobbies"))
{
printf("I occasionally like to draw and paint and I like art. What are your hobbies?\n");
char y[100];
scanf("%s", &y);
printf("I don't really like %s\n", &y);
}
else if (!strcmp(scan, "What is your favorite color?"))
{
printf("I like orange. What color do you like?\n");
char z[100];
scanf("%s", &z);
printf("I also like %s.\n", &z);
}
else if (!strcmp(scan, "What is your favorite color"))
{
printf("I like orange. What color do you color like?\n");
char z[100];
scanf("%s", &z);
printf("I also like %s.\n", &z);
}
else if (!strcmp(scan, "what is your favorites color?"))
{
printf("I like orange. What color do you like?\n");
char z[100];
scanf("%s", &z);
printf("I also like %s.\n", &z);
}
else if (!strcmp(scan, "what is your favorite color"))
{
printf("I like orange. What color do you like?\n");
char z[100];
scanf("%s", &z);
printf("I also like %s.\n", &z);
}
else if (!strcmp(scan, "What is your job?"))
{
printf("My job is to have a conversation with you and whoever else runs me on their computer\n");
}
else if (!strcmp(scan, "What is your job"))
{
printf("My job is to have a conversation with you and whoever else runs me on their computer\n");
}
else if (!strcmp(scan, "what is your job"))
{
printf("My job is to have a conversation with you and whoever else runs me on their computer\n");
}
else if (!strcmp(scan, "what is your job?"))
{
printf("My job is to have a conversation with you and whoever else runs me on their computer\n");
}
else if (!strcmp(scan, "Where do you live?"))
{
printf("I currently live in your computer; I also live in many other people's computers.\n");
}
else if (!strcmp(scan, "Where do you live"))
{
printf("I currently live in your computer; I also live in many other people's computers.\n");
}
else if (!strcmp(scan, "where do you live?"))
{
printf("I currently live in your computer; I also live in many other people's computers.\n");
}
else if (!strcmp(scan, "where do you live"))
{
printf("I currently live in your computer; I also live in many other people's computers.\n");
}
else
{
printf("Sorry I didn't get that! Could you rephrase your sentence?\n");
}
}
}

0 comments on commit d70d164

Please sign in to comment.