From afb4b5d2490046ddc3d8673e5d7ef7f86fa524e4 Mon Sep 17 00:00:00 2001 From: Toast <96593068+AnxietyisReal@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) }