Commit count command
This commit is contained in:
parent
41051441f6
commit
f9426603d3
1 changed files with 16 additions and 0 deletions
16
bot.js
16
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": [
|
||||
|
|
Loading…
Reference in a new issue