timebot

Convert live time across time-zones on IRC
git clone http://git.hanabi.in/repos/timebot.git
Log | Files | Refs | LICENSE

commit 3ba7ccdd0de02b418df1536b1a4ae33843c85f2b
parent 63891ebfc5b9285cf491127f6c45d15be0411d3b
Author: Agastya Chandrakant <acagastya@outlook.com>
Date:   Sun, 16 Aug 2020 03:31:55 +0530

formatting in help, fixes #3, ie messages not showing up

Diffstat:
Mindex.js | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/index.js b/index.js @@ -15,8 +15,8 @@ ircClient.addListener("message", normalMsg); ircClient.addListener("pm", pmHandler); function handleKill(sender, msg) { - if(msg != "KILL") return; - if(!maintainer.includes(sender)) return; + if (msg != "KILL") return; + if (!maintainer.includes(sender)) return; process.abort(); } @@ -65,11 +65,11 @@ function showHelp(channel, msg) { ); ircClient.say( channel, - `Use "${nick} add <alias>:<timezone>" for adding an alias for a timezone.` + `Use "${nick} add <alias>:<timezone>" for adding an <alias> for a <timezone>.` ); ircClient.say( channel, - `Use "${nick} rm <alias>" from removing an alias for a timezone.` + `Use "${nick} rm <alias>" from removing an <alias> for a <timezone>.` ); } @@ -117,10 +117,10 @@ function addAlias(sender, channel, msg) { ircClient.say(channel, `Error occurred: ${err}`); return; } - alias = JSON.parse(fs.readFileSync(FILE)).alias; - ircClient.say(channel, `Alias for ${key} has been added.`); } ); + alias = JSON.parse(fs.readFileSync(FILE)).alias; + ircClient.say(channel, `Alias for ${key} has been added.`); } } @@ -140,8 +140,8 @@ function deleteAlias(sender, channel, msg) { ircClient.say(channel, `Error occurred: ${err}`); return; } - alias = JSON.parse(fs.readFileSync(FILE)).alias; - ircClient.say(channel, `Alias for ${key} now does not exist.`); } ); + alias = JSON.parse(fs.readFileSync(FILE)).alias; + ircClient.say(channel, `Alias for ${key} now does not exist.`); }