From f9426603d36702f8c794927f7da8d1a68ce660b9 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Sat, 23 Nov 2024 01:37:14 -0600 Subject: [PATCH] Commit count command --- bot.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bot.js b/bot.js index e69b490..636710e 100644 --- a/bot.js +++ b/bot.js @@ -1,4 +1,20 @@ +const child_process = require("child_process") + +var commits = child_process.execSync("git rev-list --count HEAD").toString().trim() + var responses = [ + { + "type": "random", + "keywords": [ + ["tetobot"], + ["commit", "version"] + ], + "replies": [ + () => { + return `I am on commit ${commits}. Yowzers!!!` + } + ] + } { "type": "random", "keywords": [