Vayvay
@SpaceFire
London
Ladies and Gentlemen, Boys and Girls
oh and that talking cactus
I present to you a xkcdBot Website
I guess this is how I make all my posts now
xkcdBo
Python
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 my xkcdBot
prefix = "xkcd "
Commands:
xkcd random Retrieves a rando
Python
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
Python
octopyBot @CodingCactus ahaha he was talking about you. don't know if that's a coincidence or wut?3 years ago
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
SixBeeps Maybe something like this?
for domain in domains:
index[domain] = {} # I can't remember how to construct a dictionary, but that's what I'm going for here
cnt = 1
for link in links:
if domain in link:
indexdomain = link
cnt++
`3 years ago
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
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
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
Coder100 Hello. Sure there is! The docs are here
However, they are in curl. It shouldn't be hard to convert it into something requests can handle ;) Good luck!3 years ago
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
angrydoge I know quite a bit of html and a lot of python. if you set up a javascript canvas, i could make a game or something on it.3 years ago
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?
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
@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
Python
I noticed enigma_dev got 6765 cycles within the last week how did this happen so suddenly?
Bookie0 This is what he answered before.
77E64754-1A8E-4F75-BFCC-D3FD5FEABE22
Hope this helps!3 years ago
MarblesAndMore He would have helped a lot of people in that week. You get 5 cycles if you help someone.3 years ago
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
Python
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
How do i use it and what features does it have. I am using Python
I am trying to commit some changes to a repo in Github but version control doesn't do anything. i can't even make pull requests
i want to remove the file extensions from my website but .htaccess doesn'y seem to work.
SixBeeps .htaccess is an Apache thing, so it isn't native to HTML. If you want to remove file extensions like that, you're gonna need to use a web library of some sort.3 years ago