commit c4f93c4836cd4d4b613436186ae9530a799ef113
parent d17ec91993c75afeea99b3ac0f0b000cd8639f89
Author: Agastya Chandrakant <me@hanabi.in>
Date: Wed, 24 Feb 2021 08:49:55 +0530
stringify err msg
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/index.js b/index.js
@@ -23,8 +23,9 @@ ircClient.addListener("pm", pmHandler);
// event listener functions
function errorHandler(msg) {
+ const err = JSON.stringify(msg);
for (const maintainer of maintainers)
- ircClient.say(maintainer, `${nick} error: ${msg}`);
+ ircClient.say(maintainer, `${nick} error: ${err}`);
}
function normalMsg(sender, channel, msg) {
@@ -129,4 +130,4 @@ function showList(sender, msg) {
.filter(el => el.toLowerCase().includes(zone))
.join(", ");
ircClient.say(sender, res);
-}
-\ No newline at end of file
+}