Discord.py bot Uptime with Healthchecks.io
Sometimes you are running a discord bot using discord.py
(python library) and it goes offline. Sure would be nice to know right?
Retired software engineer, contributor to open source projects when I can. Working on way too many projects and hobbies, and making notes here along the way.
Follow me on Mastodon
@johnsturgeon | johnsturgeon | u/johnsturgeon
Sometimes you are running a discord bot using discord.py
(python library) and it goes offline. Sure would be nice to know right?
If you have a long-running python script (for example a discord bot) that you want running continuously, this tutorial is for you. I will show you how to create a long-running python script on any linux machine that supports systemd services.
I've been migrating my Plex server to a new server and have found a ton of problems with my Plex Music Library, so I thought I'd write some tools to help me clean it up.
I recently purchased a very used Dell R430 for use in my Homelab. The idea is to migrate the apps that I have running on various bits of hardware all over the place to one large server. It has 2x Xeon processors w/12 cores each and 128GB of RAM, so it should do nicely. Below I'll document each step through the process, for myself, as well as for anybody else who might come along. I'll do my best to keep it updated.
I want to move from Flask to FastAPI, and on a few past projects, I've enjoyed FastAPI's native integration with Pydantic models. Since I use MongoDB on the backend, I've also used Beanie ODM for persisting my models to my DB.
I have been running a simple online "Pick 'em" style football pool for decades -- since 1995 -- and it's been a source of enjoyment for my friends and family every year. I thought it would be fun to make the project a 'white box' or 'turnkey' solution for other people who want to run their own friends and family football pool.
DVRs have been around for a long time, but unfortunately streaming services have locked us in to their cloud DVR solutions. As a long time MythTV then Channels DVR user I'm excited at the idea of being able to record content from various streaming services that I subscribe to. Primarily YouTube TV.
I ran across this question posted in the r/thingsapp subreddit. The crux of the question was how to handle the case where you set your reminder for a task in Things 3 in one timezone, but need it to be TZ aware in your new Timezone.
I'm retiring my old wordpress blog (used to be http://myhdbox.com), and now I begin the slow process of migrating each post over.
In this quick post I'm going to describe how to use asyncio.Queue in a FastAPI server for processing incoming requests in the background, and in the order that they were received.