From bdfa66c6d0733f22b2068594ed9f466bb976d0c7 Mon Sep 17 00:00:00 2001 From: Simon Schick Date: Tue, 8 Dec 2015 22:17:09 +0100 Subject: [PATCH] Update entrypoint.js --- entrypoint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.js b/entrypoint.js index 68b8ac400..e7156d144 100644 --- a/entrypoint.js +++ b/entrypoint.js @@ -18,7 +18,7 @@ var major = parseInt(v[0]), patch = parseInt(v[2]); if((major == 0 && minor < 12) || (major == 0 && minor == 12 && patch < 7)) { - if(!env.OVERRIDE_DISCORD_MIN_VERSION) { + if(!process.env.OVERRIDE_DISCORD_MIN_VERSION) { throw new Error( `discord.js doesn't support node versions less than 0.12.7. If you /really/ want to run it on this node (${process.version}), then set OVERRIDE_DISCORD_MIN_VERSION as enviroment variable.