live chatroom one liner! (1 line series)[no5]
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 :)
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:
@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.
Nice program, sad that it is only one line tho. It is going to be taken down for low effort... JK
@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!
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
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!