Commit count command

This commit is contained in:
bingus_violet 2024-11-23 01:37:14 -06:00
parent 41051441f6
commit f9426603d3

16
bot.js
View file

@ -1,4 +1,20 @@
const child_process = require("child_process")
var commits = child_process.execSync("git rev-list --count HEAD").toString().trim()
var responses = [ var responses = [
{
"type": "random",
"keywords": [
["tetobot"],
["commit", "version"]
],
"replies": [
() => {
return `I am on commit ${commits}. Yowzers!!!`
}
]
}
{ {
"type": "random", "type": "random",
"keywords": [ "keywords": [