Now has a commit count
This commit is contained in:
parent
24f3ca16cf
commit
be002ecedf
4 changed files with 307 additions and 5 deletions
5
index.js
5
index.js
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue