From a9a4e2d8e93ba45c3868183458e6eb4b57cf2017 Mon Sep 17 00:00:00 2001 From: Dominic Hawken Date: Wed, 16 Mar 2022 21:38:04 +0000 Subject: [PATCH 1/2] Fix invalid json syntax Current example file is invalid - the single quotes should be double. The example file fails with 'The configuration file contains invalid JSON' at line 40 on dist/cli.js - fixed with this change. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b15a1970..09ccee69 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ First you need to create a Discord bot user, which you can do by following the i "webhookAvatarURL": "https://robohash.org/{$nickname}" // Default avatar to use for webhook messages }, "ircNickColor": false, // Gives usernames a color in IRC for better readability (on by default) - "ircNickColors": ['light_blue', 'dark_blue', 'light_red', 'dark_red', 'light_green', 'dark_green', 'magenta', 'light_magenta', 'orange', 'yellow', 'cyan', 'light_cyan'], // Which irc-upd colors to use + "ircNickColors": ["light_blue", "dark_blue", "light_red", "dark_red", "light_green", "dark_green", "magenta", "light_magenta", "orange", "yellow", "cyan", "light_cyan"], // Which irc-upd colors to use "parallelPingFix": true, // Prevents users of both IRC and Discord from being mentioned in IRC when they speak in Discord (off by default) // Makes the bot hide the username prefix for messages that start // with one of these characters (commands): From 4f096599d4a94e790ca46152a4604510b3f84df3 Mon Sep 17 00:00:00 2001 From: Dominic Hawken Date: Wed, 16 Mar 2022 22:21:49 +0000 Subject: [PATCH 2/2] IRC default port was incorrect for node-irc the default iRC port is 6667 as per this fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 09ccee69..f8bdc66a 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ First you need to create a Discord bot user, which you can do by following the i "ircOptions": { // Optional node-irc options "floodProtection": false, // On by default "floodProtectionDelay": 1000, // 500 by default - "port": "6697", // 6697 by default + "port": "6697", // 6667 by default "secure": true, // enable SSL, false by default "sasl": true, // false by default "username": "test", // nodeirc by default