diff options
Diffstat (limited to 'src/modules/version.js')
| -rw-r--r-- | src/modules/version.js | 9 |
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); }); |