I want to make a command something like [prefix]restart so that my bot doesn't go offline with every little update I make.
Ladies and Gentlemen, Boys and Girls oh and that talking cactus I present to you a DiscordPy template Features: Flask Server to keep it alive make_em
So i have a list of URLs and I extracted the domains from them which i assigned to a list. Here is an example of what my lists look like links=[ "h
Please help. I have no clue what I am doing and I tried to make a language without a lexer and that didn't work out to well. python
ELDER054 This might help https://repl.it/@Elderosa/Lexer#main.py @SpaceFire2 years ago
DynamicSquid A lexer takes input like this: int a = 2 + 3; and tokenizes it into this: Data Type: (int) Variable: (a) Number: (2) Operator: (+) Number: (3) Symbol: (;) And it has to be good enough so that it can handle input like this: int a=2+3; Try it out :)3 years ago
Coder100 Hello. What language? Here's a book taeb recommended me! It's good for languages like c and c++ where regex isn't very practical. For node.js, I can link some repls if you want.3 years ago
Here is the code I am talking about from flask import Flask app = Flask(name) @app.route("/") def index(): return "Index!" @app.route("/hello")
Coder100 Hello. I really don't recommend just breaking down code as a way to learn, so here's the official tutorial. It will actually cover everything except for only what the author wanted. Hopes this helped you learn!3 years ago
SixBeeps Import Flask and make a new webapp instance from flask import Flask app = Flask(name) Route the root directory for this webapp to a function that returns the string "Index!" @app.route("/") def index(): return "Index!" Route the /hello directory (https://www.webapp.something/hello) to a function that returns the string "Hello World!" @app.route("/hello") def hello(): return "Hello World!" If the given URL directs to /members and we get some data afterwards, do some stuff with that str3 years ago
DynamicSquid Flask tutorials? https://flask.palletsprojects.com/en/1.1.x/quickstart/3 years ago
My aim is to create a bot which can commit files to a specific part of a repo I am working on. Is there an API which works on replit? Also, I would ap
I think the question is explanatory but i don't know what this function does and i see it everywhere.
Bookie0 init is a constructor.it allows a class to initialize (assign values) attributes (like variables) of a class. here is a website that explains it better than me: https://micropyramid.com/blog/understand-self-and-init-method-in-python-class/#:~:text=init%20%3A,the%20attributes%20of%20a%20class. https://www.geeksforgeeks.org/init-in-python/ hope this helps =) 3 years ago
Hi we are looking for some devs to make 2D simulations for a website. We don't need many. If you would like to help comment and i will send you the d
PowerCoder OoOh wow this sounds so interesting. I know Node.js now so I can be a full stack helper:3 years ago
How do I use Node.js in a HTML Repl?
mwilki7 Here is a sample: https://repl.it/@mwilki7/Telestrations-Server2#index.html3 years ago
Coder100 Hello, you cannot just use node.js with an HTML repl! Node.js is a backend language. It will not and can not be mixed with a frontend page. Here's the solution. Create a node.js repl. And then add whatever node.js code is needed! Repl.it will run the command node index.js IIRC which is basically what you have anyways. Click here for a little example!3 years ago
SixBeeps Do you absolutely need to use an HTML Repl?3 years ago
@everyone or something like that. Or can I make a program that retrieves the @ of every user?
yes its short- but its functional what does it do? it has functions for logging users in, creating accounts and hacking user databases. How to create
I noticed enigma_dev got 6765 cycles within the last week how did this happen so suddenly?
So uhhh.. i got bored this is Hello World written in 12 different ways. One of them is in fact a text file that just says'hello World'. Actually, i h
For a project i need to have replit running constantly. Is this acchievable? and how? This means its still on even if i close my laptop
Mixxer From a discord bot developer, As I constantly need to shut my laptop and close replit... I use CronJobs! It's amazing! Just set it to run every minute.1 year ago
AM44 @CoolJames1610 im new to this can you please tell me which url im supposed to put on uptimebot and how to use flask.2 years ago
CoolJames1610 For my Discord Bot, I use Flask and UpTimeRobot to keep the bot alive3 years ago