DEV Community

John Wick profile picture

John Wick

Hello World

Joined Joined on 
How to Run a Python Bot on Fly.io Without It Sleeping

How to Run a Python Bot on Fly.io Without It Sleeping

1
Comments
3 min read

Want to connect with John Wick?

Create an account to connect with John Wick. You can also sign in below to proceed if you already have an account.

Already have an account? Sign in
Fixing "Address Already in Use" When Redeploying a Python Bot

Fixing "Address Already in Use" When Redeploying a Python Bot

Comments
4 min read
How to Give Your Bot a Public Uptime Page Your Users Can Check

How to Give Your Bot a Public Uptime Page Your Users Can Check

Comments
3 min read
Add Crash Recovery to Any Python Script in One Line

Add Crash Recovery to Any Python Script in One Line

Comments
3 min read
How to Detect a Frozen Python Bot (Not Just a Crashed One)

How to Detect a Frozen Python Bot (Not Just a Crashed One)

Comments
3 min read
Deploy a Telegram Bot on Koyeb Without It Going Idle

Deploy a Telegram Bot on Koyeb Without It Going Idle

Comments
3 min read
The Easiest Way to Add a Status Page Dashboard to Your Python Worker

The Easiest Way to Add a Status Page Dashboard to Your Python Worker

Comments
3 min read
Deploying Multiple Python Bots to a Single Railway Container

Deploying Multiple Python Bots to a Single Railway Container

Comments
3 min read
How to Stop Your Discord Bot From Sleeping on Render's Free Tier

How to Stop Your Discord Bot From Sleeping on Render's Free Tier

Comments
3 min read
"I Could Just Build This Myself" — Sure, But Should You?

"I Could Just Build This Myself" — Sure, But Should You?

Comments
2 min read
"What's the Catch?" — Why StayPresent Is Actually Free

"What's the Catch?" — Why StayPresent Is Actually Free

1
Comments
2 min read
If People Pay for Your Bot, They Deserve to Know It's Actually Up

If People Pay for Your Bot, They Deserve to Know It's Actually Up

Comments
2 min read
The Folder Your Bot's Dashboard Might Be Quietly Handing Out

The Folder Your Bot's Dashboard Might Be Quietly Handing Out

Comments
2 min read
Your Bot Deserves a Real Status Page. Here's One That Costs Nothing.

Your Bot Deserves a Real Status Page. Here's One That Costs Nothing.

Comments
2 min read
Your Bot Can Be "Online" and Completely Dead at the Same Time

Your Bot Can Be "Online" and Completely Dead at the Same Time

Comments
2 min read
Why Small Bot Developers Are Moving Away From Third-Party Monitoring Stacks

Why Small Bot Developers Are Moving Away From Third-Party Monitoring Stacks

Comments
3 min read
The Quiet Problem Behind Thousands of "Randomly Offline" Discord Bots

The Quiet Problem Behind Thousands of "Randomly Offline" Discord Bots

Comments
3 min read
You Built Your First Bot. Don't Let Hosting Be the Part That Discourages You.

You Built Your First Bot. Don't Let Hosting Be the Part That Discourages You.

Comments
2 min read
Running Five Bots and Losing Track of Which One's Down? Here's the Fix

Running Five Bots and Losing Track of Which One's Down? Here's the Fix

Comments
2 min read
Free Hosting Doesn't Work for Bots" Is a Myth. Here's What's Actually True.

Free Hosting Doesn't Work for Bots" Is a Myth. Here's What's Actually True.

Comments
2 min read
Your Community Deserves a Bot That's Actually There

Your Community Deserves a Bot That's Actually There

Comments
2 min read
Signs Your Bot Needs a Keep-Alive Layer (You Probably Have at Least 2)

Signs Your Bot Needs a Keep-Alive Layer (You Probably Have at Least 2)

Comments
2 min read
From 3 Crashes a Week to Zero: A Small Change That Actually Worked

From 3 Crashes a Week to Zero: A Small Change That Actually Worked

Comments
3 min read
You Don't Need a DevOps Team to Keep a Bot Online

You Don't Need a DevOps Team to Keep a Bot Online

Comments
2 min read
Deploying Your Bot Tonight? Do This One Thing First

Deploying Your Bot Tonight? Do This One Thing First

Comments
2 min read
The First Thing You Should Install Before Deploying Any Python Bot

The First Thing You Should Install Before Deploying Any Python Bot

Comments
2 min read
You're Probably Paying for Something Your Bot Should Just Do Itself

You're Probably Paying for Something Your Bot Should Just Do Itself

Comments
2 min read
My Discord Bot Died at 3 AM and Nobody Told Me for 6 Hours

My Discord Bot Died at 3 AM and Nobody Told Me for 6 Hours

Comments
3 min read
Seeing Your Bot's Crash Logs Without SSHing Into the Server

Seeing Your Bot's Crash Logs Without SSHing Into the Server

Comments
5 min read
StayPresent v1.6.0: Status Dashboard, Hang Detection, and Flexible Deployment Modes

StayPresent v1.6.0: Status Dashboard, Hang Detection, and Flexible Deployment Modes

Comments
4 min read
Running a Bot Without a Web Server (and Vice Versa) in StayPresent

Running a Bot Without a Web Server (and Vice Versa) in StayPresent

Comments
5 min read
Build a Public Status Page for Your Python Bot in One Function Call

Build a Public Status Page for Your Python Bot in One Function Call

Comments
4 min read
Detecting Frozen Python Bots with StayPresent's heartbeat()

Detecting Frozen Python Bots with StayPresent's heartbeat()

Comments
4 min read
Fixing 404 Errors on CSS/JS Files Served from a Relative Path in Flask

Fixing 404 Errors on CSS/JS Files Served from a Relative Path in Flask

3
Comments
4 min read
How to Run Two Python Bots on a Single Render or Railway Service

How to Run Two Python Bots on a Single Render or Railway Service

Comments
4 min read
Fixing "signal only works in main thread" in Python

Fixing "signal only works in main thread" in Python

Comments
4 min read
Why Does My Waitress Server Hang With threads=0?

Why Does My Waitress Server Hang With threads=0?

Comments
4 min read
FixingModuleNotFoundError: No module named 'waitress'

FixingModuleNotFoundError: No module named 'waitress'

Comments
3 min read
A Failed Validation Shouldn't Permanently Break Your API

Summer Bug Smash: Clear the Lineup 🐛🛹

A Failed Validation Shouldn't Permanently Break Your API

Comments
2 min read
Eliminating Non-Deterministic Exit Codes in StayPresent

Summer Bug Smash: Clear the Lineup 🐛🛹

Eliminating Non-Deterministic Exit Codes in StayPresent

Comments
2 min read
Fixing a Hidden State Mutation Bug in StayPresent's Web API

Summer Bug Smash: Clear the Lineup 🐛🛹

Fixing a Hidden State Mutation Bug in StayPresent's Web API

2
Comments
2 min read
Fixing "bot_args Must Be a List" — A Common Python Subprocess Argument Bug

Fixing "bot_args Must Be a List" — A Common Python Subprocess Argument Bug

1
Comments 2
4 min read
How to Automatically Restart a Python Script When It Crashes

How to Automatically Restart a Python Script When It Crashes

Comments
4 min read
"This Is a Development Server" Flask Warning — What It Means and How to Fix It

"This Is a Development Server" Flask Warning — What It Means and How to Fix It

Comments
4 min read
Why Does My Bot Go Offline After a Few Minutes on Free Hosting?

Why Does My Bot Go Offline After a Few Minutes on Free Hosting?

Comments
4 min read
Run Python Bots Without Sleep On Railway With StayPresent

Run Python Bots Without Sleep On Railway With StayPresent

Comments
4 min read
StayPresent vs Supervisor vs PM2 for Python Bot Process Management

StayPresent vs Supervisor vs PM2 for Python Bot Process Management

Comments
5 min read
Run Python Bots Without Sleep On Koyeb With StayPresent

Run Python Bots Without Sleep On Koyeb With StayPresent

Comments
4 min read
StayPresent vs Pulsetic vs Custom Flask Server for Python Bots

StayPresent vs Pulsetic vs Custom Flask Server for Python Bots

Comments
5 min read
Security Notes for Serving Static Files with StayPresent

Security Notes for Serving Static Files with StayPresent

Comments
5 min read
How StayPresent's Logging Works (Without Breaking Yours)

How StayPresent's Logging Works (Without Breaking Yours)

Comments
5 min read
Graceful Shutdown and Signal Handling in StayPresent

Graceful Shutdown and Signal Handling in StayPresent

Comments
5 min read
A Deep Dive on StayPresent's ping() and cron() Keep-Warm API

A Deep Dive on StayPresent's ping() and cron() Keep-Warm API

Comments
5 min read
Serving Multiple Endpoints from One Bot with StayPresent

Serving Multiple Endpoints from One Bot with StayPresent

Comments
5 min read
Fixing "Attempted Relative Import" Errors with StayPresent's bot_module

Fixing "Attempted Relative Import" Errors with StayPresent's bot_module

Comments
4 min read
Turn Your README Into a Live Website with StayPresent's Markdown Renderer

Turn Your README Into a Live Website with StayPresent's Markdown Renderer

Comments
5 min read
Multiple Bots in One Process with StayPresent

Multiple Bots in One Process with StayPresent

Comments
4 min read
I Fixed a Shutdown Race Condition That Could Leave Bot Processes Running Forever

Summer Bug Smash: Clear the Lineup 🐛🛹

I Fixed a Shutdown Race Condition That Could Leave Bot Processes Running Forever

3
Comments 2
3 min read
StayPresent — Keep Your Python Bots Alive Without the Boilerplate 🚀

StayPresent — Keep Your Python Bots Alive Without the Boilerplate 🚀

3
Comments
2 min read
Creating a Live Status Page for Your Python Bot

Creating a Live Status Page for Your Python Bot

Comments
4 min read
loading...