Network Engineer Jokes Twitter Bot
An LLM-driven Twitter bot that generates and posts network-engineering humor every 60 minutes. Runs on a home Proxmox lab in an LXC container, provisioned with Terraform.
A Twitter bot that posts network-engineering jokes generated by a self-hosted Llama 3 model. Every 60 minutes it requests a fresh joke + relevant hashtags from the model, composes a tweet, and posts it via the Twitter API. The whole thing lives in an LXC container on my home Proxmox server, provisioned with Terraform so the environment is reproducible from a single terraform apply.
Key features
- Automated joke generation — Llama 3 produces the punchline.
- Hashtag generation — model picks contextually relevant hashtags too.
- Scheduled posting — a new joke goes out every 60 minutes.
- Tweepy — handles the OAuth1 auth and posting against the Twitter v2 API.
How it works
The application loads API keys from a .env file, then asks Llama 3.1 for a joke and matching hashtags. The joke and hashtags are concatenated into a tweet, OAuth1-signed with Tweepy, and posted. Errors and successes are both logged. After posting, the loop sleeps for 60 minutes and repeats.
Deployment
Clone the repo, terraform apply to spin up the LXC container on Proxmox, and the bot starts running. The whole pipeline — request joke → receive joke → post tweet — repeats hourly.
Example tweet
Why do network engineers love nature? Because it's full of NATural beauty! 🌳🌐
#NetworkEngineer #TechHumor #Networking #JokesCheck the live account at @NetworkJokes to see it in action.