trash chatroom
h
maazzubair99 (126)

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
[deleted]

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

maazzubair99 (126)

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

[deleted]

@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 (126)

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

[deleted]

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

maazzubair99 (126)

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

[deleted]

@maazzubair99 I can also see your .env

[deleted]

@maazzubair99 It should do it for you

[deleted]

@maazzubair99 thats a bug with replit

Haaruun (95)

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

maazzubair99 (126)

@Haaruun ok ill take a look at this

AdCharity (1307)

@Haaruun jsonstore is def not secure

Haaruun (95)

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

AdCharity (1307)

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