trash chatroom
h
maazzubair99 (88)

so I saw @taylorliang 's FreeDB and thought it was really cool. I started messing around with it, and found out that i could send a message through it. I made a copy of it, used it as a server for this trash chatroom that took me way longer to make that I'd care to admit

v1.1:
fixed inputs getting cut off when new message is recived
v1.0:
inital release

You are viewing a single comment. View All
TaylorLiang (538)

Im not going to lie, this is really easy to hack just like my old db.
Might make a spam/bot

maazzubair99 (88)

@TaylorLiang ik its more of a proof of concept for me. plus if you spam the same message the chat won't update

TaylorLiang (538)

@maazzubair99 yea, but the database is in your repl, for everybody to see. They can remove the man in the middle, and just send requests themself. This is also the problem with my database, as somebody (not you) keeps spamming it

maazzubair99 (88)

@TaylorLiang i was considering putting it in a .env but then i realized i have no idea how to use a .env

TaylorLiang (538)

@maazzubair99 i think you have to use a package/mod called dotenv.

maazzubair99 (88)

@TaylorLiang i figured out how to do it with os.environ and os.getenv

Haaruun (72)

instead of using FreeDB witch has the problems taylor said, you can use josonstore or quick plug FreeDB 2.0 @maazzubair99

maazzubair99 (88)

@Haaruun ok ill take a look at this

AdCharity (871)

@Haaruun jsonstore is def not secure

Haaruun (72)

Jsonstore is secure enough if you hide the token. Its near impossible to guess it. @AdCharity

AdCharity (871)

@Haaruun for small projects jsonstore is the way to go. However, if you plan for expanding the project, that might not be a great idea.