Optimize rain, fix crash
This commit is contained in:
parent
01e6f8abd4
commit
beaa2406d1
3 changed files with 29 additions and 27 deletions
3
index.js
3
index.js
|
@ -1,7 +1,6 @@
|
|||
const express = require('express'),
|
||||
path = require('path'),
|
||||
fs = require('fs'),
|
||||
pageUpdater = require('./pageUpdater.js'),
|
||||
WebSocket = require("ws")
|
||||
|
||||
var app = express()
|
||||
|
@ -28,6 +27,8 @@ if (!fs.existsSync(announcementFile)) {
|
|||
fs.writeFileSync(announcementFile, ``)
|
||||
}
|
||||
|
||||
const pageUpdater = require('./pageUpdater.js')
|
||||
|
||||
var constants = JSON.parse(fs.readFileSync(path.join(__dirname, 'constants.json')))
|
||||
|
||||
app.listen(PORT, () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue