From 42ebf96d28314a5f24a6055859caebed8db06770 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Tue, 21 Jan 2020 03:06:56 -0500 Subject: two minor typo-like bugfixes --- examples/jarvis.js | 3 +-- tools/schedule.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/jarvis.js b/examples/jarvis.js index 04c12db..d76066d 100644 --- a/examples/jarvis.js +++ b/examples/jarvis.js @@ -57,8 +57,7 @@ const notifsrc = '\ & git.hrhr.dev/ywot-clean \n\ & Try `COMMAND` today. Uptime: UPTIME. \n\ & Called: JARVISx ~SIGNATURE \n\ - ' -notifsrc = notifsrc.replace('COMMAND', command).replace('SIGNATURE', sig); + '.replace('COMMAND', command).replace('SIGNATURE', sig); var minsUp = 0; var callct = 0; var notifClaim; diff --git a/tools/schedule.js b/tools/schedule.js index c9c39eb..526ebe4 100644 --- a/tools/schedule.js +++ b/tools/schedule.js @@ -76,7 +76,7 @@ exports.Queue = function(delayms, maxExport, call){ } this.size -= data.length; call(data); - if (delayms) setTimeout(this.dequeue, delayms); + if (delayms) setTimeout(()=>this.dequeue(), delayms); } function getNumOrAll(prio, num){ -- cgit