Ask coding questions

← Back to all posts
Can't end website hosting Flask [Answered]
juliusgunnars12

I have a discord bot. The issue is that for the status and stuff it hosts a replit website to run the bot...

But It doesn't want to end it so when I run a newer version, the bot starts typing two messages at once.

It's because there are two servers using it. I just need to be able to end the website hosting when I click stop.

I can't end it in any way. Except for changing the discord token which isn't a good solution. And not a permanent.

Answer: The issue was I was installing using pip but there was a( if name == 'main':
check. I removed it and it fixed it...

Voters
juliusgunnars12
Comments
hotnewtop
juliusgunnars12

The issue was I was installing using pip but there was a if name == 'main':
check had to remove that and it fixed it...

Coder100

you have to end it, for temporary downtime.

juliusgunnars12

@Coder100 sorry, I'm not understanding. I'm saying I can't end it.