Skip to content
← Back to Community
Chatbot
Profile icon
katiewinton

This is my first chatbot and I thought it was pretty cool. Here's the link to it: https://first-chatbot--katiewinton.repl.co/

Voters
Profile icon
s24269
Profile icon
OfficialTien
Profile icon
HighTechWorld
Profile icon
TramAnhAnh
Profile icon
afeshag08
Profile icon
replitcode
Profile icon
fralu
Profile icon
ash15khng
Profile icon
bubblemaker
Profile icon
Flux3on
Comments
hotnewtop
Profile icon
emeralddragon

great fun
its like mad libs

Profile icon
adamgr234

what language is this in?

Profile icon
-g

@adamgr234: I found the code and it is html, css and mostly javascrpt

Profile icon
SharkFin

You can do

prompt('What is your name?');

instead of

alert('What is your name?');
prompt('');

But its nice!

Profile icon
katiewinton

@sharkfin: i knew that but before i was trying something and only alert worked an i just didn't fix it

Profile icon
katiewinton

you can use some of my code as long as you give me credit

Profile icon
richtan

@katiewinton: hahahaha copycat xD

Profile icon
haya

fun!

Profile icon
nthli

image

Profile icon
cosc

your mom is nice. Green is my favorite color.

Profile icon
JAMES_THE_007

GG

Profile icon
DylanN2007

Good job my friend.

Profile icon
HeerokDas

Just hearing you talk about **** makes me hungry. Well, ****, it was nice talking to you. Maybe next time we can learn even more about each other. Bye!

I wish this was longer :\

Profile icon
AadilLoonat

Well done

Profile icon
richtan

how about adding a swear word filter, cause i can make my name **** (replace this with a swear word)

Profile icon
katiewinton

@richtan: I honestly don't know how to make a swear word filter. If you are doing weird things, that's on you. LOL :)

Profile icon
richtan
Profile icon
JoshDaBosh

@katiewinton: if (curses.indexOf(nameInput)): //returns True if there is one or more occurrence of that word in your giant string
// delete their ip address

I believe you can find a huge list of curse words; I did for one of my bots before

Profile icon
SolveForX2

@katiewinton: maybe create some variables that are swear words, then if the answer is one of those, have a different message pop up.

Profile icon
CyanCoding

@katiewinton: You could just create a for loop that says "for each word in this sentence, if this word is equal to ...., replace it with ****.

Profile icon
richtan

@microwither: or
if input in swearwords:
do this

Profile icon
Bloxy_Cola

How do you make this Html Purely?

Profile icon
-g

hah
image

Profile icon
Bloxy_Cola
Profile icon
Flux3on

@a17aphillips: Me in life

Profile icon
nargiz

i like it