Skip to content

Commit ca8e24f

Browse files
committed
Prevent error when statuspage env vars are not set
1 parent 83e64fd commit ca8e24f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/statuspage.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { isDocker } from "../utils/docker";
55
export default (client: Client): void => {
66
// Check if the bot is running in a docker container by checking if the env variable UPTIME_KUMA_CONTAINERIZED is true
77
if (isDocker()) return;
8+
if (!process.env.UPTIME_KUMA_MONITOR_DOMAIN || !process.env.UPTIME_KUMA_MONITOR_ID) return;
89
const updateStatus = async () => {
910
// This function is called every 1 minutes and pings the network status page for uptime monitoring
1011
await axios.get(

0 commit comments

Comments
 (0)