Skip to content
Sign UpLog In
Profile icon

Vayvay

@SpaceFire
London
GitHub
Repls
Community
SpaceFire
SpaceFire
shared a Post
3 years ago
xkcdBot has a Website now!
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
Nord
Python
DynamicSquid
DynamicSquid
what about that talking squid?3 years ago
SpaceFire
SpaceFire
shared a Post
3 years ago
I want to make a command something like [prefix]restart so that my bot doesn't go offline with every little update I make.
Killenemy45
Killenemy45
Use client.stop() and done8 months ago
Coder100
Coder100
Might want to look at crosis3 years ago
SpaceFire
SpaceFire
shared a Post
3 years ago
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
Nord
Python
Scoder12
Scoder12
Awesome website style!3 years ago
CodeLongAndPros
CodeLongAndPros
Btw, there is an Xkcd api: https://xkcd.com/json.html3 years ago
SpaceFire
SpaceFire
shared a Post
3 years ago
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
DiscordPy Template
Python
octopyBot
octopyBot
@CodingCactus ahaha he was talking about you. don't know if that's a coincidence or wut?3 years ago
suryan1234
suryan1234
very nice3 years ago
SpaceFire
SpaceFire
shared a Post
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
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
TheForArkLD
TheForArkLD
here!3 years ago
SpaceFire
SpaceFire
shared a Post
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
ELDER054
ELDER054
This might help https://repl.it/@Elderosa/Lexer#main.py @SpaceFire2 years ago
DynamicSquid
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
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
SpaceFire
SpaceFire
shared a Post
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
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
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
DynamicSquid
Flask tutorials? https://flask.palletsprojects.com/en/1.1.x/quickstart/3 years ago
SpaceFire
SpaceFire
shared a Post
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
Coder100
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
SpaceFire
SpaceFire
shared a Post
3 years ago
I think the question is explanatory but i don't know what this function does and i see it everywhere.
Bookie0
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
SpaceFire
SpaceFire
shared a Post
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
Whacko
Whacko
I am very good at HTML5 and JavaScript.2 years ago
angrydoge
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
PowerCoder
OoOh wow this sounds so interesting. I know Node.js now so I can be a full stack helper:3 years ago
SpaceFire
SpaceFire
shared a Post
3 years ago
How do I use Node.js in a HTML Repl?
mwilki7
mwilki7
Here is a sample: https://repl.it/@mwilki7/Telestrations-Server2#index.html3 years ago
Coder100
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
SixBeeps
Do you absolutely need to use an HTML Repl?3 years ago
SpaceFire
SpaceFire
shared a Post
3 years ago
@everyone or something like that. Or can I make a program that retrieves the @ of every user?
belu-dad
belu-dad
you pinged a user called everyone @spacefire 9 months ago
belu-dad
belu-dad
???9 months ago
ash15khng
ash15khng
please don't its just too much spam for literally everyone on this website3 years ago
SpaceFire
SpaceFire
shared a Post
3 years ago
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 Login
Python
TwiceBright
TwiceBright
It might help if you actually called the functions 2 years ago
zplusfour
zplusfour
it doesn't run anything3 years ago
DollarSign
DollarSign
brother, go to Harvard, you don't belong here xD jk3 years ago
SpaceFire
SpaceFire
shared a Post
3 years ago
I noticed enigma_dev got 6765 cycles within the last week how did this happen so suddenly?
Bookie0
Bookie0
This is what he answered before. 77E64754-1A8E-4F75-BFCC-D3FD5FEABE22 Hope this helps!3 years ago
DynamicSquid
DynamicSquid
He's a dev, so I think it's just for testing purposes3 years ago
MarblesAndMore
MarblesAndMore
He would have helped a lot of people in that week. You get 5 cycles if you help someone.3 years ago
SpaceFire
SpaceFire
shared a Post
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
Hello World
Python
SpaceFire
SpaceFire
shared a Post
3 years ago
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
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
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
CoolJames1610
For my Discord Bot, I use Flask and UpTimeRobot to keep the bot alive3 years ago
SpaceFire
SpaceFire
shared a Post
3 years ago
How do i use it and what features does it have. I am using Python
SixBeeps
SixBeeps
Are you talking about the replit package, or something like mat's API?3 years ago
SpaceFire
SpaceFire
shared a Post
3 years ago
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
CodeLongAndPros
CodeLongAndPros
The REPL gui is a git wrapper. You can't make a pull request from git3 years ago
SpaceFire
SpaceFire
shared a Post
3 years ago
i want to remove the file extensions from my website but .htaccess doesn'y seem to work.
SixBeeps
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