From 1745aa185a1aaa3684ea5197094f4dde19885b01 Mon Sep 17 00:00:00 2001 From: Adphi Date: Sat, 19 Jan 2019 19:15:22 +0100 Subject: [PATCH] fix greetings not updating date on exit --- js/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/index.js b/js/index.js index 7c3bb24..4641951 100644 --- a/js/index.js +++ b/js/index.js @@ -32,7 +32,9 @@ }); } }, { - greetings: '[[;green;]' + new Date().toString().slice(0, 24) + "]\n\nPress [[;#ff5e99;]Enter] for more information on [[;#009ae3;]occ] commands.\n", + greetings: function (callback) { + callback('[[;green;]' + new Date().toString().slice(0, 24) + "]\n\nPress [[;#ff5e99;]Enter] for more information on [[;#009ae3;]occ] commands.\n") + }, name: 'occ', prompt: 'occ $ ', completion: response,