From ba963844d6dc9bef06b031b2ab298b8d146d804e Mon Sep 17 00:00:00 2001 From: Ralph Date: Thu, 17 Oct 2019 23:37:07 -0400 Subject: [PATCH] Update releasenotes.js --- bot/modules/releasenotes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/modules/releasenotes.js b/bot/modules/releasenotes.js index 9404590..506d3ab 100644 --- a/bot/modules/releasenotes.js +++ b/bot/modules/releasenotes.js @@ -13,7 +13,7 @@ exports.releasenotes = { description: 'gets current release notes from GitHub, for either Desktop or Android', process: function(bot, msg, suffix) { let releaseType = suffix.toLowerCase(); - let releaseTypeName = releaseType.charAt(0).toUpperCase() + releaseType.slice(5); + let releaseTypeName = releaseType.charAt(0).toUpperCase() + releaseType.slice(1); if (releaseType !== 'android' && releaseType !== 'desktop' && releaseType !== 'post android' && releaseType !== 'post desktop') { msg.reply('Please specify which release notes to display: "desktop" or "android".'); return;