removed dependency check
This commit is contained in:
parent
ebcc61a9e7
commit
1ea18208f0
19
app.js
19
app.js
@ -1,17 +1,8 @@
|
||||
try {
|
||||
const fs = require('fs');
|
||||
const express = require('express');
|
||||
const showdown = require('showdown')
|
||||
const crypto = require('crypto'); // For encrypting passwords
|
||||
const { fromUnixTime, format, getUnixTime } = require("date-fns")
|
||||
}
|
||||
catch (error) {
|
||||
console.log("You have not installed all dependencies")
|
||||
console.log("Dependencies needed: express, showdown, crypto, date-fns, fs")
|
||||
console.log("crypto is for hashing passwords, don't worry, I'm not mining!")
|
||||
console.log(error)
|
||||
process.exit()
|
||||
}
|
||||
const fs = require('fs');
|
||||
const express = require('express');
|
||||
const showdown = require('showdown')
|
||||
const crypto = require('crypto'); // For encrypting passwords
|
||||
const { fromUnixTime, format, getUnixTime } = require("date-fns")
|
||||
|
||||
if (process.argv[2] == "--first-time") {
|
||||
initialise()
|
||||
|
Loading…
x
Reference in New Issue
Block a user