Skip to content
← Back to Community
Python Webserver Problem
Profile icon
THEDK

Hey guys,

So I am trying to build a discord bot with Python and I want to keep it online by writing a webserver and then having an external website ping the server(I did this with another bot of mine and it worked fine). So I copied the code from the original bot and added some minor changes whenever events happen but the webserver does not seem to be working with this one, the weird thing is if I change the position of the line of code that runs my webserver to be before the line that runs the discord bot, the webserver runs but the bot doesnt. In the original bot I had the bot running before the discord server and I am downright perplexed why this bot isnt working even after I changed the ports just to make sure there was no problem with using a specific port

image

Voters
Profile icon
JOEVIDEOS
Profile icon
THEDK
Comments
hotnewtop
Profile icon
JOEVIDEOS

i have the same problem but i cant find a solution.

Profile icon
Chopkeys

ballscaks

Profile icon
i7zz

@Chopkeys very informative