mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 04:13:08 +02:00
refactor: update node version check
This commit is contained in:
parent
6cd6721baa
commit
96d1ddc48c
@ -24,8 +24,9 @@
|
||||
|
||||
process.title = 'Discord Tickets';
|
||||
|
||||
const node_version = Number(process.versions.node.split('.')[0]);
|
||||
if (node_version < 14) return console.log(`\x07Error: Discord Tickets does not work on Node v${node_version}. Please upgrade to v14 or above.`);
|
||||
const min_node_version = '16.6.0';
|
||||
const semver = require('semver');
|
||||
if (semver.lt(process.versions.node, min_node_version)) return console.log(`\x07Error: Discord Tickets does not work on Node v${process.versions.node}; please upgrade to v${min_node_version} or above.`);
|
||||
|
||||
const leeks = require('leeks.js');
|
||||
const fs = require('fs');
|
||||
|
Loading…
Reference in New Issue
Block a user