Share your repls and programming experiences

← Back to all posts
Chatbot
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
HighTechWorld
TramAnhAnh
afeshag08
replitcode
fralu
ash15khng
bubblemaker
Flux3on
gramatgesj21
richtan
Comments
hotnewtop
emeralddragon

great fun
its like mad libs

adamgr234

what language is this in?

-g

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

SharkFin

You can do

prompt('What is your name?');

instead of

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

But its nice!

katiewinton

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

katiewinton

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

richtan

@katiewinton: hahahaha copycat xD

haya

fun!

nthli

cosc

your mom is nice. Green is my favorite color.

JAMES_THE_007

GG

DylanN2007

Good job my friend.

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 :\

AadilLoonat

Well done

richtan

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

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 :)

richtan
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

SolveForX2

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

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

richtan

@microwither: or
if input in swearwords:
do this

Bloxy_Cola

How do you make this Html Purely?

-g

hah

Bloxy_Cola
Flux3on

@a17aphillips: Me in life

nargiz

i like it