Skip to content
← Back to Community
live chatroom one liner! (1 line series)[no5]
Profile icon
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

@app.route('/') def index(): return whatever

can be re-written as

index = app.route('/')(lambda : whatever)
  • 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
Profile icon
GucciBanana7
Profile icon
KaiJenkins1
Profile icon
alishascoder
Profile icon
bramley
Profile icon
LegendaryWolf
Profile icon
maxina
Profile icon
mesquite2234
Profile icon
AxolotlBot
Profile icon
DarkChat
Profile icon
MohiTheEpic
Comments
hotnewtop
Profile icon
Whippingdot

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

Profile icon
rafrafraf

@Whippingdot 😂😂😂

Profile icon
SleepySid
Profile icon
Whippingdot

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

Profile icon
Whippingdot

The amount of notifications you are giving me:

image
@SudhanshuMishra

Shhhtop

Profile icon
rafrafraf

@Whippingdot thanks man!

Profile icon
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!

Profile icon
rafrafraf

@Whippingdot thanks alot man! i appreciate it loads

Profile icon
SleepySid

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

Profile icon
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. 😅

Profile icon
SleepySid
Profile icon
AndrewAung11

@Whippingdot Hello Know me??

Profile icon
Whippingdot

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

Profile icon
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).

Profile icon
Whippingdot

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

Profile icon
ch1ck3n

@AndrewAung11 I host LandonBot

Profile icon
aryanpandya

@Whippingdot lmfao nice

Profile icon
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. é

Profile icon
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

Profile icon
OldWizard209

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

Profile icon
rafrafraf
Profile icon
Bookie0

Screen Shot 2021-01-21 at 11.31.28 AM

EVERYTHING IS SQUISHED!!!

*scared, whimpering sounds

Profile icon
tussiez

@Bookie0 M i n i f y

Profile icon
ch1ck3n

very pog

Profile icon
rafrafraf
Profile icon
JBloves27
Profile icon
INCOGNITO001

BRO TAKE OFF THE JIBBERISH SPAMMERS

Profile icon
mrslep

@gjirtngisnt IKR THERE SO ANNOYING

Profile icon
HahaYes

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

Profile icon
rafrafraf

@HahaYes lmaoo

Profile icon
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!

Profile icon
xxpertHacker

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

Profile icon
rafrafraf
Profile icon
SleepySid

image

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

Profile icon
rafrafraf

@SudhanshuMishra i saw lmaoo

Profile icon
SleepySid

@rafrafraf yes I talked with you your name was raf

Profile icon
TsunamiOrSumth

@rafrafraf nice cycle count

Profile icon
JBloves27
Profile icon
rafrafraf

@TsunamiOrSumth thanks lmao

Profile icon
BobTheTomatoPie

yikes a lot of spammers

Profile icon
AphixDev

ur insane!

Profile icon
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?

Profile icon
tussiez

Another bot is up spamming random strings of text..

Profile icon
tussiez

Note!!

The chat isn't moderated

Profile icon
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.

Profile icon
rafrafraf

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

Profile icon
AndrewAung11

@rafrafraf Who made it? Do you know?

Profile icon
rafrafraf
Profile icon
AverseABFun

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

Profile icon
SleepySid

@AverseABFun 😁😁

Profile icon
AverseABFun

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

Profile icon
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. :)

Profile icon
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

Profile icon
FlaminHotValdez

@Whippingdot yeah I threatened him with ban

Profile icon
SleepySid

@AverseABFun hmm How do u know ?

Profile icon
Whippingdot

cause he said he created it @SudhanshuMishra

Profile icon
SleepySid
Profile icon
JBloves27

Nice job getting it to trending!

Profile icon
rafrafraf

@JBYT27 thanks!

Profile icon
JBloves27
Profile icon
KENNETHTRIPP

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

Profile icon
rafrafraf

@KENNETHTRIPP now thats an idea i like >:)

Profile icon
KENNETHTRIPP
Profile icon
Whippingdot

do it do it do it @rafrafraf

Profile icon
glitchish

@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

Profile icon
rafrafraf

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

Profile icon
glitchish

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

Profile icon
rafrafraf
Profile icon
RahulChoubey1

@CodingRedpanda Let me guess: a time bot?

IT'S SPAMMING AAAAAAAAAAAAAAAAAAAA

Profile icon
glitchish

@RahulChoubey1 no its a different bot

Profile icon
SleepySid
Profile icon
glitchish

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

Profile icon
Whippingdot

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

Profile icon
glitchish

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

Profile icon
Whippingdot
Profile icon
glitchish

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

Profile icon
gwynethwingell

wow

Profile icon
zplusfour

no way a chat in one line

Profile icon
rafrafraf

@ZDev1 yes way :)

Profile icon
zplusfour
Profile icon
JackLesher

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

Profile icon
JackLesher

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

Profile icon
SixBeeps

@JackLesher They used Flask

Profile icon
LincolnMiddle
Profile icon
SleepySid

@DSAEvan hehe

image

Profile icon
GeumjuKim

coolio
:)

Profile icon
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.

Profile icon
rafrafraf

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

Profile icon
JBloves27

OMG! That is amazing!

i think its your longest one yet! ;)

Profile icon
rafrafraf

@JBYT27 thanks!

Profile icon
JBloves27
Profile icon
JacobMcPherson1

damn

Profile icon
MarcusWeinberger

ONE LINE ALL THE THINGS

Profile icon
rafrafraf

@MarcusWeinberger HELL YEAH BUDDY

Profile icon
JackLesher

@MarcusWeinberger Mein gott...

Profile icon
Whippingdot

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

Profile icon
TsunamiOrSumth

:O

Profile icon
rafrafraf