From 84d62b6178bdc36afc88bf6ba31d59eee7cca78a Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Tue, 29 Nov 2022 18:33:16 +0100 Subject: [PATCH] fix(node): Add a warning to using old node I don't think it will even get that far to run but nice to have --- src/bot.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bot.ts b/src/bot.ts index 32e5518..b726db3 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -15,5 +15,9 @@ async function main() { else await getLocalImage(conf) } +if (Number(process.versions.node.split('.')[0]) < 16) { + console.error("Please upgrade to node 16. NO GUARENTEES!") +} + // Run the main function, obviously. main()