All Chat! -A Python Chat (Now Version 3.5)
WELCOME!
This is a chat in Python
!
We have ran out of slots for mods. Sorry
If There's An Error
We are undergoing some changes.
Credits:
Inspiration - @JBloves27
Devs
Updates:
Version 2
- New
Markdown
- Instructions
- ASCII
Version 3
- Blocks Swearing
- Moderator Confirmation
- See Old Chats
Version 3.5
- Feedback!
- New colors
If you like this, you may like our Text 2 ASCII program!
Mods
- @JWZ6
- @bwoop
- @Lolguy1123455
- @SamiOsman
- @BunnyToes
- @IGamer123
- @poetaetoes
- @Awesomecoder345
- @ch1ck3n
- @KadenBlox
- @OskarBrady
Rules
-
Dont cuss, say slurs, harass people, and advertise.
-
No NSFW. This is not for NSFW.
-
No impersonating Moderators/Developers/Owners.
-
Don't say any personal info.
We care for the safety of our users."
And if you need Moderators Feel free to call for some.
All Chat Inc. Copyright Reserved.
Command
All Chat
'bold'
, 'italic'
, and 'underline'
for markdown!
'ASCII'
for ASCII art!
'exit'
and 'quit'
to leave
'change_name'
to change your username
'old_messages'
to see old messages
'feedback'
to rate the chat
Dear Users, remember to NOT swear, keep it friendly!
Ping us if you need our help with something
Everyone, go to here for the chat to work!
This feels like a somewhat cheap way to create a python chatroom. The fact that your re-writing a text file and printing it defeats the whole purpose, considering that a chat is a way to connect multiple clients to a server and have them message each other.
Internet Relay Chat (IRC) is an application layer protocol that facilitates communication in the form of text. The chat process works on a client/server networking model. IRC clients are computer programs that users can install on their system or web based applications running either locally in the browser or on a third party server.
Also, judging based on the code, the moderators are completely fake and have no powers/abilities within the chatroom.
@JWZ6 , that's right. We can delete it in the code but I kind of looks like you have to reload to see the effect
@LOLguy1123455 hmmmm
@Dunce no, they control-c and use console commands. They're no longer in the chatroom and they can modify files using the console.
@FlaminHotValdez Oh, I see.
@JWZ6 so you blatantly ignore the fact that your chatroom can literally be deleted any second?
@FlaminHotValdez I just tried it, and ctrl + c raises the error:
Type in your message: Traceback (most recent call last): File "main.py", line 23, in <module> message = input("\033[0mType in your message: ") KeyboardInterrupt
@FlaminHotValdez we got a bakup one but i see ur point
@Dunce That's the point, now you are in the console and you can enter commands.
@JWZ6 and explain why they can't completely wipe the backup one?
@FlaminHotValdez never thought of that
@FlaminHotValdez hmm well i think i can trust them to not wipe the bakup one
@FlaminHotValdez Oh, I see what your saying. That seems like something Replit needs to fix.
@JWZ6 and what if someone hacks it?
@Dunce it's an intended feature so that you can fiddle with the console and stuff
@FlaminHotValdez Okay.
@Dunce they don't
@FlaminHotValdez Okay.
@FlaminHotValdez @IMayBeMe Could you maybe give me an example code on how to do that? (delete the code)
@SamiOsman it doesn’t delete the code but rather clears the text file completely including the instructions. Here is the code:
with open(“chat.txt”, “w”) as x: x.write(“every thing is deleted”)
btw if the code looks weird, that’s just cause I’m on mobile
@SamiOsman yes
@IMayBeMe I don't think I am incompetent. (Sorry @JWZ6) I managed to disable ctrl-c and make it so whenever you do it, this happens: os.system('clear')
. I also made sure that the program never exits. I found alternative ways to that. If there is any other way to wipe out the text file please let me know
@SamiOsman thx
@SamiOsman Good job! Now I have to click the stop button to enter commands in the console. That made my job of wiping the chat harder by 0.1%!
@FlaminHotValdez Huh oooh... didnt think of that...Hmmm could I invite you to the repl to help us fix it?
@SamiOsman I don't think you can do anything to disable the stop repl button seeing as it's one of the mechanics in replit
@JWZ6 Is that your default response when you can't figure out anything to defend yourself?
@SamiOsman my original strat of overwriting the file through the console still works
@SamiOsman I think the easiest way to fix it would be to save every message to a data base string and use beeline characters to split it something like this:
from replit import db db[‘some_key’] = ‘test message\n’ db[‘some_key’] += ‘next message\n’ print(db[‘some_key’])
you can replace some_key
with your own which can then be stored in the env section. Also this is just a rough overview so you can add your own input and adding stuff to the db
after careful consideration i've decided to award you the POG AWARD!
confirmed by ch1ck3n, the founder of the pog awards comitee
@ch1ck3n yay!
@JWZ6
it's in the hall of fame btw
https://pog-awards.ch1ck3n.repl.co/
@SamiOsman That, replit culture, is called unluckyfroggying
@SamiOsman lol?
@ch1ck3n *snickers* noice one
@FlaminHotValdez its hard to forget when you've been unluckyfroggied by none other than unluckyfroggy humself
@FlaminHotValdez oh my this game im playing has an achievement for cheating
@ch1ck3n fr? didn't he list you in credits?
chicken != potato
@ch1ck3n oh my gods fr? which game is that I have to see
@FlaminHotValdez jk its the game im making
https://clicker.ch1ck3n.repl.co/
im working on achivements
@FlaminHotValdez eeeeeeeeee
Wow! This is quite amazing!
@CodeMaster007 thanks
mod pls
@IGamer123 wow ok
@IGamer123 thx if you like plz updoot (only if u is like lol)
'2.0 Release'
How's the new profile pic, Just kiddin' Hey folks.
@Bro28CoderKing noice
@JWZ6 Bro how's the profile pic
@JWZ6 You recognize the character below
@Bro28CoderKing yup ugandan knuckles?
@JWZ6 yes boss :DDDDDD
@JWZ6 huh?
@JWZ6 Sorry for that, lol heeHee ??
@Bro28CoderKing heeee heee
one ting: I can choose I am a moderator, choose a username and log in as a moderator. You should have at least a secret passwrd using replit’s secret code feature thing. or something more secure.
@SilvermoonCat yes ik but it detects if u isn't mod right?
@JWZ6 now it works, yesterday I signed in as a mod but now I can’t
@SilvermoonCat BTW: it says “hi hi Im brandon, type chat_bot” however, in order for it to work you have to type bot_chat.
@SilvermoonCat oh yes my bad typo
@SilvermoonCat good
PLEASE PUT THE BAD WORDS IN A DIFFERENT FILE
@PyCoder01 idk how
@PyCoder01 lol mk
Hiya there,
It seems like you used some code from my template, which is cool, but I have some things to mention.
This does not actually save, as the .txt
file does not work as db (I'll put that on the template). To actually save, you might want to import db things, etc.
Also, you might want to print the chat text in the console, or make this a flask app with db.
Thanks!
Me and ch1ck3n are working on a python django chat web so this’ll be better @JBloves27
Could u help maybe? @JBloves27
Yay I’ll invite u @JBloves27
Ah max people sadness @JBloves27
Ok gud @JBloves27
mod pls, would upvote if there was a button
@KadenBlox there is at the very top
mod pls
@Awesomecoder345 ok fine
@Awesomecoder345 np just don't go too crazy
how would we delete someone message if they break [email protected]
@Awesomecoder345 go to chat.txt (file) and search for a bad word. Then, delete the comment that has the bad word.
only 3 more slots for moderators or coders!
'mod pls'
new update! Ascii text.
If you type something in then this will appear Traceback (most recent call last):
File "main.py", line 60, in
chat_txt.write(tprint(ascii))
TypeError: write() argument must be str, not None
please opy and paste and enter the chat until we fix that bug.
mod pls
great job
This is cool, great Job.
@InvisibleOne tysm
Repl.it: Package operation failed.
oh nuu this is the end of the world
@xXToluwaXx we were debugging lol
@xXToluwaXx try again pls
@JWZ6 i opened it to the spotlight page and it works there
@xXToluwaXx nice hope u like
"mod pls"
LOLOLOLOLOLOL
@JWZ6 im going to crash this
@MaciahLawson btw pls check dis out: https://replit.com/talk/share/Text-2-ASCII-By-Me-And-SamiOsman/139787
hi
@JWZ6 Wanna Collab??
@Bro28CoderKing y not
@JWZ6 How do we start??? 🤔
@Bro28CoderKing hmmmmmmmmmmmm idk
yay
@xXToluwaXx @LOLguy1123455 @ch1ck3n @MaciahLawson @SamiOsman We have updated the chatroom!
@JWZ6 pog you put a elif on line 52
@xXToluwaXx lemme see
@xXToluwaXx oh yeah were almost done with that part. btw if u like dis pls upvote (only if you like)
@JWZ6, @SamiOsman, @LOLguy1123455. I am not a hater or anything, but you should recognize that this program has a MASSIVE flaw in it. In fact it is not secure at all.
Firstly, you are saving all the chat into a text file. That is the worst choice of saving data you could probably think of. Anyone can wipe all the data clean in a second.
Secondly, one you open the chat using

with
, you don't need to close it:The chat also doesn't update, you have to hard reload to see the new chat because it is getting saved in the text file, and most if the time it doesn't. I triedd from a different laptop, nothing changed. An actual chat works live and constant updating chat. You writing into the text file destroys the point completely. This (no offense) is almost low effort.
I express no hate or offense, I am just saying how this can be much better and how the description is biased.
@OldWizard209 hmm it updates for me and only me and moderators can delete the text
that doesn't change the fact that it is unsafe and not a way to make a chat. Also the mods are manually deleting text from the file....... @JWZ6
@JWZ6 heard of console?
@OldWizard209 well we clear it in case it gets a bit too long
@FlaminHotValdez yup
@JWZ6 that's the point, you can use the console to completely delete the chat
@JWZ6 Yet another flaw in the system-what if somebody wants to see earlier chat messages? You can't because the entire file has been deleteed
@OldWizard209 I 100% agree with you, this is way over advertized
@IMayBeMe hmm im trying to find a safe way to store python input safely
@JWZ6 A safe way is to use an env var with a database or just use sockets.
@IMayBeMe how do i do dat in Python
@JWZ6 Read the repl db docs
@IMayBeMe k
@OldWizard209 @IMayBeMe me and @ch1ck3n are amking a django chat website
@JWZ6 Maybe try learning databases?
@maxina k