From f23cde0e8f3ba97a760e65728f2eb3e33aa8fd1c Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Fri, 12 May 2023 13:08:28 +1000 Subject: [PATCH] idk if it works, honestly. --- src/MPLoop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MPLoop.ts b/src/MPLoop.ts index 44839a9..2a5a101 100644 --- a/src/MPLoop.ts +++ b/src/MPLoop.ts @@ -19,7 +19,7 @@ export default async(client:TClient,Channel:string,Message:string,ServerName:str data: {} as FSCareerSavegame, fetchResult: '' as string }; - if (!Server.ip.match(/http|https/)) return msg.edit({content: '*Detected an invalid IP\nContact MP Manager or Bot Tech*', embeds: null}); + if (!Server?.ip?.match(/http|https/)) return msg.edit({content: '*Detected an invalid IP\nContact MP Manager or Bot Tech*', embeds: null}); async function serverData(client:TClient, URL:string){ return await client.axios.get(URL, {timeout: 5000, maxContentLength: Infinity, headers:{'User-Agent':`Daggerbot/axios ${client.axios.VERSION}`}}).catch((error:Error)=>error.message) }