diff --git a/chatBot/includes/client.js b/chatBot/includes/client.js index 7d61fbd..5033659 100644 --- a/chatBot/includes/client.js +++ b/chatBot/includes/client.js @@ -4,6 +4,9 @@ import EventEmitter from 'node:events' class Client extends EventEmitter { constructor(chatRoomID, botName) { super(); + + if(!chatRoomID || !botName) return console.error("ChatRoomID or BotName is not defined!"); + this.topicBuffer = Buffer.from(chatRoomID, 'hex'); this.botName = botName; this.swarm = new Hyperswarm();