aboutsummaryrefslogtreecommitdiff
path: root/src/modules/version.js
diff options
context:
space:
mode:
authorSin-MacBook <[email protected]>2020-08-11 23:13:24 +0200
committerSin-MacBook <[email protected]>2020-08-11 23:13:24 +0200
commit55e9c9188fcced6b74045290b5767c68af572fda (patch)
tree8413825cdcf622cc6fc915bfe4ccc073437a38c8 /src/modules/version.js
parentclean this up when home (diff)
downloadmodmail-55e9c9188fcced6b74045290b5767c68af572fda.tar.xz
modmail-55e9c9188fcced6b74045290b5767c68af572fda.zip
ok
Diffstat (limited to 'src/modules/version.js')
-rw-r--r--src/modules/version.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/version.js b/src/modules/version.js
index 033fbf0..fc15d9b 100644
--- a/src/modules/version.js
+++ b/src/modules/version.js
@@ -17,13 +17,14 @@ module.exports = ({ bot, knex, config, commands }) => {
let response = `Modmail v${packageVersion}`;
- let isGit;
+ /* let isGit;
try {
await access(GIT_DIR);
isGit = true;
} catch (e) {
isGit = false;
- }
+ } */
+ let isGit = false;
if (isGit) {
let commitHash;
@@ -41,12 +42,12 @@ module.exports = ({ bot, knex, config, commands }) => {
response += ` (${commitHash.slice(0, 7)})`;
}
- if (config.updateNotifications) {
+ /* if (config.updateNotifications) {
const availableUpdate = await updates.getAvailableUpdate();
if (availableUpdate) {
response += ` (version ${availableUpdate} available)`;
}
- }
+ } */
utils.postSystemMessageWithFallback(msg.channel, thread, response);
});