I am coding for a discord bot, when i manually run the but it works fine, but when i tried to run through the web view it shows the following screen again and again:
Since code has 0 errors, REPL should load and work perfectly fine.
REPL is not waking up!
Bug appears at this link:
OS: Windows 11
Device (Android, iOS, n/a leave blank): HP pc
Plan (Free, Hacker, Pro Plan):
@DikshaSharma25 welcome to the forums!
Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!
Also see this guide on how to share your code:
To share your code with others, you can simply link to your repl or paste and format the code into your post!
Linking to a repl
The easiest way to share your code is by linking to your repl. You can find the link by clicking on your repl title, clicking on Cover page, and clicking the button to copy the URL.
NOTE: only share repl join links or use the invite button with people you trust!
Sharing short code samples
Share a snippet of your code by wrapping it in backti…
@DikshaSharma25 Can you try clicking the reload button, and press the CTRL key at the same time? Don’t let go of the CTRL key until the page has fully loaded.
Could you tell me if this works or not?
@DikshaSharma25 If none of the above ideas work, could you fork the repl and see if the forked version works?
It generally works for people.
Hope this helps!
in the forked version i can’t even see the webview option
It tells me that the repl is not found…
Can you try running the forked version?
try this pls, i have kept repl on public now
there is no web view option in forked repl
So it doesn’t run?
The Webview will appear when you run it.
no it didnt appear on running
@DikshaSharma25 , I don’t see a HTML file, I believe that is the problem.
You also don’t have a framework like Django or Flask, so I don’t know how the frontend will run.
i have added a keep_alive.py file which uses flask to run the bot.
here’s the code:
from flask import Flask
from threading import Thread
app = Flask('app')
t = Thread(target=run)
what else should i do, kindly guide
You still need a HTML file so that the user can see something when in the website.
alright, can you kindly provide a sample code for reference, i just need to get a web link for this bot
To do that, I need to first understand what you want to be shown to the user.
The repl has many files and images, so could you tell me what should be shown to the users?
Note that this may take a long time.
Routes don’t work like that, try this:
Also make sure you’re not running a pinger inside your Repl, as that has no real effect.
I suggest you create a
Why would you suggest they make a bounty? They just needed a bit of code help AFAICT.
for the HTML bit.
Why? They don’t even need HTML files for the code to work.