Share your repls and programming experiences

← Back to all posts
live chatroom one liner! (1 line series)[no5]
rafrafraf

You can literally make anything in one line ;)

Here is my one line flask py live chatroom!

Live chat here

Let me know if you have any ideas for what I should make in one line next :)

Explanation:

I only had to get over two problems that I hadn't yet encountered when working on this:

  • firstly, decorators:
    as you (probably) already know, with py flask you use decorators when routing - for example:

this

can be re-written as

  • the second issue was making the client, so I used flask render template string and passed in my html/css/js code I made for the client.
Voters
alishascoder
bramley
LegendaryWolf
maxina
mesquite2234
AxolotlBot
DarkChat
MohiTheEpic
Emirhan123
ParrotDev
Comments
hotnewtop
Whippingdot

Nice program, sad that it is only one line tho. It is going to be taken down for low effort... JK

rafrafraf

@Whippingdot 😂😂😂

SudhanshuMishra
Whippingdot

I think you and marcusweinberger should be mods. You guys create AWESOME programs together @rafrafraf

Whippingdot

The amount of notifications you are giving me:


@SudhanshuMishra
Shhhtop

rafrafraf

@Whippingdot thanks man!

Whippingdot

@rafrafraf Welcome. i haven't been here for long, but for the short time I have been here, you have created the email service, the web analytics service(which you created before, but who cares), this chat app, and you created one more thing which I forgot but was certainly awesome. Good job!

rafrafraf

@Whippingdot thanks alot man! i appreciate it loads

SudhanshuMishra

@Whippingdot sorry , no offense friend (ping again sorry)

Whippingdot

@SudhanshuMishra Did you see the minus one notifications icon. That is what I was showing you, you can ping me all you want. That was for fun. 😅

SudhanshuMishra
AndrewAung11

@Whippingdot Hello Know me??

Whippingdot

Oooo that was ur actual account? Yup, i know you @AndrewAung11

AndrewAung11

@Whippingdot Ha Ha. Do you want to join chat I am the only one in the chat now except the TimeUpdateBt(The annoying bot).

Whippingdot

Oh I will join, I am there actually. The tab is open. @AndrewAung11

ch1ck3n

@AndrewAung11 I host LandonBot

aryanpandya

@Whippingdot lmfao nice

firefish

@Whippingdot force everyone to have their own css, it makes things look more consistent. for example if you have one page that's cool and stylish and one with times new roman as a font. how ridiculous.

P.S. é

Whippingdot

Lul, also U just said force everyone to have their own CSS, and then you gave an example of that not working out. I don't understand. Just repeat what u said clearly. The only thing is if your suggestion regards the full thing then I can't do much cause people won't be excited to redo their WHOLE page again would they... @firefish

OldWizard209

Python: No man scares me
@rafrafraf : I m 'bout end this whole languages career in one line...

rafrafraf
Bookie0

EVERYTHING IS SQUISHED!!!

*scared, whimpering sounds

tussiez

@Bookie0 M i n i f y

ch1ck3n

very pog

rafrafraf
JBloves27
INCOGNITO001

BRO TAKE OFF THE JIBBERISH SPAMMERS

mrslep

@gjirtngisnt IKR THERE SO ANNOYING

HahaYes

My eyes...they can't handle this again

rafrafraf

@HahaYes lmaoo

FlaminHotValdez

Okay I had the bad luck of meeting the idiot who made AdBot, SpamBot, and Spam Bot Beta. I also had the good luck or looking at Repl talk rules and threatening to report them. No more adbots or spambots yayyyy!

xxpertHacker

Wow, and I heard that Python was a white-space sensitive language that forced perfect formatting on code...

rafrafraf
SudhanshuMishra

ok so someone made a time bot ... ??

rafrafraf

@SudhanshuMishra i saw lmaoo

SudhanshuMishra

@rafrafraf yes I talked with you your name was raf

TsunamiOrSumth

@rafrafraf nice cycle count

JBloves27
rafrafraf

@TsunamiOrSumth thanks lmao

BobTheTomatoPie

yikes a lot of spammers

AphixDev

ur insane!

GavinSanti

I love the idea and the chat room, but the spammers and the bots. Can you please try to make a bot proof chat room next?

tussiez

Another bot is up spamming random strings of text..

tussiez

Note!!

The chat isn't moderated

AndrewAung11

@rafrafraf This is really cool. I think if you put the time on the top of the box instead of making time update bot. Because that bot is annoying.

rafrafraf

@AndrewAung11 lmaoo i didnt make any bots those are all made by other users ahahah i just made a chatroom thats all

AndrewAung11

@rafrafraf Who made it? Do you know?

rafrafraf
AverseABFun

a guy called SpamBot is saying SPAMMER UR EZ and spamming that

SudhanshuMishra

@AverseABFun 😁😁

AverseABFun

@SudhanshuMishra it also seems that the bot was made by a guy called "i"

FlaminHotValdez

@AverseABFun yeah, he also made AdBot. But I threatened him by reporting him because spam is against the rules of repl. Now he shut up, ragequit, and took his bots with him. :)

Whippingdot

What!! I stopped him yesterday morning. I think we should report him. I yelled at him soo much yesterday morning(for me cause I live in India) and he stopped his two bots and left. It seems he started again and you stopped him? @FlaminHotValdez

FlaminHotValdez

@Whippingdot yeah I threatened him with ban

SudhanshuMishra

@AverseABFun hmm How do u know ?

Whippingdot

cause he said he created it @SudhanshuMishra

SudhanshuMishra
JBloves27

Nice job getting it to trending!

rafrafraf

@JBYT27 thanks!

JBloves27
KENNETHTRIPP

@rafrafraf you should make a one line password cracker.
Great job by the way!

rafrafraf

@KENNETHTRIPP now thats an idea i like >:)

KENNETHTRIPP
Whippingdot

do it do it do it @rafrafraf

iocoder

@rafrafraf

i dont mean to try to test u, but...

can you somehow make it so it hashes out some words
and it hashes out some names too?


otherwise, this is CoOl

rafrafraf

@CodingRedpanda thanks! And i may add that actually thanks for the suggestion

iocoder

@rafrafraf also i made a bot for this (no, it doesnt spam)

rafrafraf
RahulChoubey1

@CodingRedpanda Let me guess: a time bot?

IT'S SPAMMING AAAAAAAAAAAAAAAAAAAA

iocoder

@RahulChoubey1 no its a different bot

SudhanshuMishra

@CodingRedpanda spam bot

iocoder

@SudhanshuMishra if u want to know, its literally called "CodingRedpanda's Bot" and i've programmed it to not spam!

Whippingdot

Don't lie, it was too human to be a bot. @CodingRedpanda

iocoder

@Whippingdot i was controling it directly, yes, but it also has the ability todo things itself. but today i got rid of it because it was getting random bugs.

Whippingdot
iocoder

@Whippingdot it was bugging over a single variable called "name"

gwynethwingell

wow

zplusfour

no way a chat in one line

rafrafraf

@ZDev1 yes way :)

zplusfour
JackLesher

How did you get it online? How did you make the server?

JackLesher

@JackLesher I'm making something like this with a friend and I'd like to know. Teach me, mold me.

SixBeeps

@JackLesher They used Flask

LincolnMiddle
SudhanshuMishra

@DSAEvan hehe

GeumjuKim

coolio
:)

IntellectualGuy

Can you please add a way to ban people, there are way to many spammers here, otherwise I think this think is really pog.

rafrafraf

@IntellectualGuy i may do so later, im all tired out atm :/

JBloves27

OMG! That is amazing!

i think its your longest one yet! ;)

rafrafraf

@JBYT27 thanks!

JBloves27
JacobMcPherson1

damn

MarcusWeinberger

ONE LINE ALL THE THINGS

rafrafraf

@MarcusWeinberger HELL YEAH BUDDY

JackLesher

@MarcusWeinberger Mein gott...

Whippingdot

Wait a sec, why isn't the dude getting mentioned. Look at your 2 mentions, they are a different color. @rafrafraf

TsunamiOrSumth

:O

rafrafraf