mirror of
https://git.femboyfinancial.jp/james/FemScoreboard.git
synced 2026-02-11 10:09:31 -08:00
Random messages, logging refactor
This commit is contained in:
@@ -8,6 +8,7 @@ import { Database, open } from 'sqlite';
|
||||
import express = require('express');
|
||||
import 'dotenv/config';
|
||||
import { ScoreboardMessageRow, ScoreboardUserRow } from './models';
|
||||
import { logInfo } from './discord/util';
|
||||
|
||||
const app = express();
|
||||
app.use(express.static('public'));
|
||||
@@ -36,8 +37,8 @@ app.get('/', async (req, res) => {
|
||||
});
|
||||
|
||||
app.listen(port, async () => {
|
||||
console.log('[web] Opening database...');
|
||||
logInfo('[web] Opening database...');
|
||||
db = await openDb();
|
||||
console.log('[web] Database ready.');
|
||||
console.log(`[web] Listening on port ${port}`);
|
||||
logInfo('[web] Database ready.');
|
||||
logInfo(`[web] Listening on port ${port}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user