Now has a commit count

This commit is contained in:
bingus_violet 2023-12-19 18:29:17 +00:00
parent 24f3ca16cf
commit be002ecedf
4 changed files with 307 additions and 5 deletions

View file

@ -2,7 +2,8 @@ const express = require('express'),
path = require('path'),
fs = require('fs'),
WebSocket = require('ws'),
xml2json = require('xml-js')
xml2json = require('xml-js'),
commitCount = require('git-commit-count');
var app = express()
@ -231,6 +232,8 @@ function pageUpdate() {
html = html.replace("{SEASONAL_EFFECT}", "")
}
html = html.replace("{COMMITS}", commitCount('https://codeberg.org/Bingus_Violet/Violets-Purgatory'))
fs.writeFileSync(path.join(__dirname, 'static/index.html'), html)
}