Abheek D
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
4 deletions
-
index.js
|
@ -442,12 +442,10 @@ async function about(action, interaction) { |
|
|
|
|
|
|
|
|
interaction.reply({ embeds: [contributorEmbed] }); |
|
|
interaction.reply({ embeds: [contributorEmbed] }); |
|
|
} else if (action === "changelog") { |
|
|
} else if (action === "changelog") { |
|
|
let parentFolder = __dirname.split("/"); |
|
|
const gitRepoLocation = __dirname; |
|
|
parentFolder.pop(); |
|
|
|
|
|
parentFolder = parentFolder.join("/"); |
|
|
|
|
|
|
|
|
|
|
|
const commits = gitlog({ |
|
|
const commits = gitlog({ |
|
|
repo: parentFolder, |
|
|
repo: gitRepoLocation, |
|
|
number: 5, |
|
|
number: 5, |
|
|
fields: ["hash", "abbrevHash", "subject", "authorName", "authorDateRel"], |
|
|
fields: ["hash", "abbrevHash", "subject", "authorName", "authorDateRel"], |
|
|
}); |
|
|
}); |
|
|